aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/parse_dependency_label.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/repositories/e/parse_dependency_label.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/repositories/e/parse_dependency_label.cc')
-rw-r--r--paludis/repositories/e/parse_dependency_label.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/paludis/repositories/e/parse_dependency_label.cc b/paludis/repositories/e/parse_dependency_label.cc
index 9f4588858..021cc3e06 100644
--- a/paludis/repositories/e/parse_dependency_label.cc
+++ b/paludis/repositories/e/parse_dependency_label.cc
@@ -176,11 +176,11 @@ paludis::erepository::parse_dependency_label(
std::shared_ptr<DependenciesLabelsDepSpec> l(std::make_shared<DependenciesLabelsDepSpec>());
- for (std::set<std::string>::iterator it = labels.begin(), it_e = labels.end(); it != it_e; ++it)
+ for (const auto & label : labels)
{
- std::string c(e.supported()->dependency_labels()->class_for_label(*it)), cc;
+ std::string c(e.supported()->dependency_labels()->class_for_label(label)), cc;
if (c.empty())
- throw EDepParseError(s, "Unknown label '" + *it + "'");
+ throw EDepParseError(s, "Unknown label '" + label + "'");
std::string::size_type p(c.find('/'));
if (std::string::npos != p)
@@ -192,12 +192,12 @@ paludis::erepository::parse_dependency_label(
if (c == "DependenciesTestLabel")
{
if (cc.empty())
- l->add_label(DepLabelsStore::get_instance()->get(e.name(), c, *it));
+ l->add_label(DepLabelsStore::get_instance()->get(e.name(), c, label));
else
- l->add_label(DepLabelsStore::get_instance()->get_test(e.name(), c, ChoiceNameWithPrefix(cc), *it));
+ l->add_label(DepLabelsStore::get_instance()->get_test(e.name(), c, ChoiceNameWithPrefix(cc), label));
}
else
- l->add_label(DepLabelsStore::get_instance()->get(e.name(), c, *it));
+ l->add_label(DepLabelsStore::get_instance()->get(e.name(), c, label));
}
return l;