aboutsummaryrefslogtreecommitdiff
path: root/paludis/fs_merger.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/fs_merger.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/fs_merger.cc')
-rw-r--r--paludis/fs_merger.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/paludis/fs_merger.cc b/paludis/fs_merger.cc
index 0fa032193..28132d229 100644
--- a/paludis/fs_merger.cc
+++ b/paludis/fs_merger.cc
@@ -156,14 +156,14 @@ FSMerger::prepare_install_under()
for (FSPath d(_imp->params.root().realpath() / _imp->params.install_under()), d_end(_imp->params.root().realpath()) ;
d != d_end ; d = d.dirname())
dd.push_front(d);
- for (std::list<FSPath>::iterator d(dd.begin()), d_end(dd.end()) ; d != d_end ; ++d)
- if (! d->stat().exists())
+ for (auto & d : dd)
+ if (! d.stat().exists())
{
- d->mkdir(0755, { });
- track_install_under_dir(*d, FSMergerStatusFlags());
+ d.mkdir(0755, { });
+ track_install_under_dir(d, FSMergerStatusFlags());
}
else
- track_install_under_dir(*d, FSMergerStatusFlags() + msi_used_existing);
+ track_install_under_dir(d, FSMergerStatusFlags() + msi_used_existing);
}
void