[Prevent] Removed warning from Prevent.
authorJan Olszak <j.olszak@samsung.com>
Fri, 7 Dec 2012 12:40:21 +0000 (13:40 +0100)
committerGerrit Code Review <gerrit2@kim11>
Tue, 11 Dec 2012 08:29:01 +0000 (17:29 +0900)
[Issue#] Using pointer to temporary object.
[Bug] N/A
[Cause] N/A
[Solution] Using the object instead of pointer.
[Verification] Build installer. Run installer tests.

Change-Id: I3c8b3b95355b9aee561a55e7b01851c77c914c1e

src/jobs/widget_install/task_widget_config.cpp

index 2b51238..5724e3b 100644 (file)
@@ -568,7 +568,9 @@ bool TaskWidgetConfig::isFeatureAllowed(WrtDB::AppType appType,
     LogInfo("FetureName = [" << featureName << "]");
 
     AppType featureType = APP_TYPE_UNKNOWN;
-    const char* feature = DPL::ToUTF8String(featureName).c_str();
+    std::string featureStr = DPL::ToUTF8String(featureName);
+    const char* feature = featureStr.c_str();
+
     // check prefix of  feature name
     if (strstr(feature, PluginsPrefix::TIZENPluginsPrefix) == feature) {
         // Tizen WebApp feature