From: Soo-Hyun Choi Date: Thu, 19 Sep 2013 06:22:07 +0000 (+0900) Subject: Fix build warning X-Git-Tag: 2.2.1_release~10^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=686f23e371a64219a31961b85a0ef485cee9c9a1;p=framework%2Fweb%2Fwrt-installer.git Fix build warning * 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 --- diff --git a/src/jobs/widget_install/task_pkg_info_update.cpp b/src/jobs/widget_install/task_pkg_info_update.cpp index 11b7b69..4bd0898 100644 --- a/src/jobs/widget_install/task_pkg_info_update.cpp +++ b/src/jobs/widget_install/task_pkg_info_update.cpp @@ -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; }