Clean up 56/42356/2
authorTomasz Iwanek <t.iwanek@samsung.com>
Fri, 26 Jun 2015 09:49:06 +0000 (11:49 +0200)
committerPawel Sikorski <p.sikorski@samsung.com>
Fri, 26 Jun 2015 12:06:41 +0000 (05:06 -0700)
Needless copy.
Future commit will change type returned by get_icon_paths().

Change-Id: If01b152705ada315fdc7150bd510ab555dc21464

src/wgt/step/step_parse.cc

index 3bd674c..88a811c 100755 (executable)
@@ -78,8 +78,7 @@ bool StepParse::FillIconPaths(manifest_x* manifest) {
       std::static_pointer_cast<const ApplicationIconsInfo>(
           parser_->GetManifestData(manifest_keys::kIconsKey));
   if (icons_info.get()) {
-    std::vector<std::string> icons = icons_info->get_icon_paths();
-    for (auto& icon_str : icons) {
+    for (auto& icon_str : icons_info->get_icon_paths()) {
       icon_x* icon = reinterpret_cast<icon_x*> (calloc(1, sizeof(icon_x)));
       icon->name = strdup(icon_str.c_str());
       LISTADD(manifest->icon, icon);