From ea281f23451f2812f8f63464d594182dea08b09c Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Wed, 27 Jul 2016 19:44:21 +0900 Subject: [PATCH] Fix build warning Change-Id: I9bf2df3544921fe9a5fde76434f2f7597cbdd21a Signed-off-by: Sangyoon Jang --- src/wgt/step/security/step_check_extension_privileges.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wgt/step/security/step_check_extension_privileges.cc b/src/wgt/step/security/step_check_extension_privileges.cc index d2de923..15b305a 100755 --- a/src/wgt/step/security/step_check_extension_privileges.cc +++ b/src/wgt/step/security/step_check_extension_privileges.cc @@ -57,9 +57,9 @@ common_installer::Step::Status StepCheckExtensionPrivileges::process() { LOG(DEBUG) << "start to parse extension xml : " << *it; ExtensionConfigParser extensionParser(*it); std::vector list = extensionParser.GetExtensionPrivilegeList(); - for (int i = 0 ; i < list.size() ; i++) { - if (current_privileges.find(list[i]) == current_privileges.end()) { - privileges.insert(list[i]); + for (std::string priv : list) { + if (current_privileges.find(priv) == current_privileges.end()) { + privileges.emplace(priv); } } } -- 2.7.4