Fix build warning
authorSoo-Hyun Choi <sh9.choi@samsung.com>
Thu, 19 Sep 2013 06:22:07 +0000 (15:22 +0900)
committerSoo-Hyun Choi <sh9.choi@samsung.com>
Wed, 25 Sep 2013 10:59:21 +0000 (19:59 +0900)
* warning: deprecated conversion from string constant to 'char*'

[Issue#]   N/A
[Problme]  Build warning
[Cause]    deprecated conversion from string constant to 'char*'
[Solution] cast to char pointer

Change-Id: I70e7289fdde412fa1d6bc786e10dec0ed38fbcbc

src/jobs/widget_install/task_pkg_info_update.cpp

index 11b7b69..4bd0898 100644 (file)
@@ -67,12 +67,16 @@ void TaskPkgInfoUpdate::StepPkgInfo()
     int code = 0;
     char* updateTags[3] = {NULL, };
 
+    char preloadTrue[] = "preload=true";
+    char removableTrue[] = "removable=true";
+    char removableFalse[] = "removable=false";
+
     if (InstallMode::InstallTime::CSC == m_context.mode.installTime) {
-        updateTags[0] = "preload=true";
+        updateTags[0] = preloadTrue;
         if (m_context.mode.removable) {
-            updateTags[1] = "removable=true";
+            updateTags[1] = removableTrue;
         } else {
-            updateTags[1] = "removable=false";
+            updateTags[1] = removableFalse;
         }
         updateTags[2] = NULL;
     }