[Prevent] Removed warning from Prevent.
authorJan Olszak <j.olszak@samsung.com>
Fri, 7 Dec 2012 11:30:33 +0000 (12:30 +0100)
committerGerrit Code Review <gerrit2@kim11>
Tue, 11 Dec 2012 15:57:10 +0000 (00:57 +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: Ie9cdd255c30c54bcd048b2f71530ad8ee1ffea74

src/jobs/widget_install/task_widget_config.cpp

index 5724e3b..bf5301a 100644 (file)
@@ -262,9 +262,9 @@ void TaskWidgetConfig::ProcessStartFile(const DPL::OptionalString& path,
                 if (m_installContext.widgetConfig.webAppType ==
                         APP_TYPE_TIZENWEBAPP)
                 {
-                    const char *startPath =
-                        DPL::ToUTF8String(startFileData.path).c_str();
-                    if (strstr(startPath, "http") == startPath) {
+                    std::string startPath =  DPL::ToUTF8String(startFileData.path);
+
+                    if (strstr(startPath.c_str(), "http") == startPath.c_str()) {
                         WidgetRegisterInfo::StartFileProperties
                             startFileProperties;
                         if (!!type) {