if (!SendSignal(PKGMGR_INSTALLER_START_KEY_STR, key->second, type, pkgid))
return false;
- for (auto l : user_list_) {
+ for (const auto& l : user_list_) {
key = kEventStr.find(l.second);
if (key == kEventStr.end())
continue;
std::to_string(static_cast<int>(result)).c_str(), type, pkgid))
return false;
- for (auto l : user_list_)
+ for (const auto& l : user_list_)
SendSignal(l.first,
PKGMGR_INSTALLER_ERROR_KEY_STR,
std::to_string(static_cast<int>(result)).c_str(), type, pkgid);