aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/get_sameness.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/resolver/get_sameness.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/resolver/get_sameness.cc')
-rw-r--r--paludis/resolver/get_sameness.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/paludis/resolver/get_sameness.cc b/paludis/resolver/get_sameness.cc
index 29c8a2ab7..6f95f083e 100644
--- a/paludis/resolver/get_sameness.cc
+++ b/paludis/resolver/get_sameness.cc
@@ -185,10 +185,9 @@ paludis::resolver::get_sameness(
std::inserter(common, common.begin()));
}
- for (std::set<ChoiceNameWithPrefix>::const_iterator f(common.begin()), f_end(common.end()) ;
- f != f_end ; ++f)
- if (installable_choices->find_by_name_with_prefix(*f)->enabled() !=
- existing_choices->find_by_name_with_prefix(*f)->enabled())
+ for (const auto & f : common)
+ if (installable_choices->find_by_name_with_prefix(f)->enabled() !=
+ existing_choices->find_by_name_with_prefix(f)->enabled())
{
is_same = false;
is_same_metadata = false;