aboutsummaryrefslogtreecommitdiff
path: root/paludis/environments/paludis/paludis_environment.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/environments/paludis/paludis_environment.cc')
-rw-r--r--paludis/environments/paludis/paludis_environment.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/paludis/environments/paludis/paludis_environment.cc b/paludis/environments/paludis/paludis_environment.cc
index 4bc180843..033ce77a2 100644
--- a/paludis/environments/paludis/paludis_environment.cc
+++ b/paludis/environments/paludis/paludis_environment.cc
@@ -507,15 +507,14 @@ PaludisEnvironment::populate_sets() const
sets_dirs.push_back(FSPath(LIBDIR) / "paludis" / "sets");
}
- for (auto sets_dir(sets_dirs.begin()), sets_dir_end(sets_dirs.end()) ;
- sets_dir != sets_dir_end ; ++ sets_dir)
+ for (auto & sets_dir : sets_dirs)
{
- Context context("When looking in sets directory '" + stringify(*sets_dir) + "':");
+ Context context("When looking in sets directory '" + stringify(sets_dir) + "':");
- if (! sets_dir->stat().exists())
+ if (! sets_dir.stat().exists())
continue;
- for (FSIterator d(*sets_dir, { fsio_inode_sort }), d_end ; d != d_end ; ++d)
+ for (FSIterator d(sets_dir, { fsio_inode_sort }), d_end ; d != d_end ; ++d)
{
if (is_file_with_extension(*d, ".bash", { }))
{