aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/process.cc
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-08-04 21:57:23 -0700
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-08-04 22:11:01 -0700
commitf3cd2455110fad09158275287cbdaa67cc3e15c3 (patch)
treeb1922ea17b1401f0e86c6e3cdaf3a278dade4557 /paludis/util/process.cc
parente9ccc3a086f57507712a44ef2fadc34affa13af9 (diff)
downloadpaludis-f3cd2455110fad09158275287cbdaa67cc3e15c3.tar.gz
paludis-f3cd2455110fad09158275287cbdaa67cc3e15c3.tar.xz
modernize: convert to range based for-loops
Automated conversion to range based for loops. NFC
Diffstat (limited to 'paludis/util/process.cc')
-rw-r--r--paludis/util/process.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/paludis/util/process.cc b/paludis/util/process.cc
index 380d671d6..fa9bf8902 100644
--- a/paludis/util/process.cc
+++ b/paludis/util/process.cc
@@ -794,9 +794,8 @@ Process::run()
::setenv("LINES", stringify(lines).c_str(), 1);
}
- for (auto m(_imp->setenvs.begin()), m_end(_imp->setenvs.end()) ;
- m != m_end ; ++m)
- ::setenv(m->first.c_str(), m->second.c_str(), 1);
+ for (auto & m : _imp->setenvs)
+ ::setenv(m.first.c_str(), m.second.c_str(), 1);
if (! _imp->chdir.empty())
if (-1 == ::chdir(_imp->chdir.c_str()))