[Application] - removed not needed asigment of NULL into tizen_2.4
authorAndrzej Popowski <a.popowski@samsung.com>
Fri, 16 Oct 2015 11:46:05 +0000 (13:46 +0200)
committerAndrzej Popowski <a.popowski@samsung.com>
Fri, 16 Oct 2015 11:46:05 +0000 (13:46 +0200)
Change-Id: I656066ef4098e50d427cd3a3afd5000d0fcc5af7
Signed-off-by: Andrzej Popowski <a.popowski@samsung.com>
src/application/application_utils.cc

index e532becda2dd98291f1c1e32edf2da39b78a3514..fabc343996c1b2bc5211b9145f92eb4976877235 100755 (executable)
@@ -114,7 +114,6 @@ void ApplicationUtils::CreateApplicationInformation(const pkgmgrinfo_appinfo_h h
     } else {
       app_info->insert(std::make_pair("version", picojson::value(tmp_str)));
     }
-    tmp_str = nullptr;
 
     // installation date
     int installed_time = 0;
@@ -269,9 +268,7 @@ PlatformResult ApplicationUtils::ApplicationControlDataToServiceExtraData(
   size_t i = 0;
 
   for (auto iter = value.begin(); iter != value.end(); ++iter, ++i) {
-    if (iter->is<std::string>()) {
-      arr[i] = iter->get<std::string>().c_str();
-    }
+    arr[i] = iter->to_str().c_str();
   }
 
   if (1 == size) {