[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
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) {