Needless copy.
Future commit will change type returned by get_icon_paths().
Change-Id: If01b152705ada315fdc7150bd510ab555dc21464
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);