aboutsummaryrefslogtreecommitdiff
path: root/src/clients
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-12-06 22:46:47 -0800
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-12-07 08:26:43 -0800
commita2ffec7bfe2586f23ea05d8d0ba40623ffc9c011 (patch)
tree9dad59d53dda614f7fa7f857e2878249fb48bc89 /src/clients
parent2bb7fb31360a60cdeab39e18ae37e75d482cf4e3 (diff)
downloadpaludis-a2ffec7bfe2586f23ea05d8d0ba40623ffc9c011.tar.gz
paludis-a2ffec7bfe2586f23ea05d8d0ba40623ffc9c011.tar.xz
cave: range base loopify (NFC)
Diffstat (limited to 'src/clients')
-rw-r--r--src/clients/cave/cmd_fix_linkage.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/clients/cave/cmd_fix_linkage.cc b/src/clients/cave/cmd_fix_linkage.cc
index bb284e82b..6ab58f3d4 100644
--- a/src/clients/cave/cmd_fix_linkage.cc
+++ b/src/clients/cave/cmd_fix_linkage.cc
@@ -165,17 +165,16 @@ FixLinkageCommand::run(
resolve_cmdline.resolution_options.a_execute.set_specified(args::aos_specified);
auto libraries(std::make_shared<Sequence<std::string>>());
- for (auto l(cmdline.a_libraries.begin_args()), l_end(cmdline.a_libraries.end_args()) ;
- l != l_end ; ++l)
+ for (const auto & library : cmdline.a_libraries.args())
{
- libraries->push_back(*l);
- if (std::string::npos != l->find('/'))
+ libraries->push_back(library);
+ if (std::string::npos != library.find('/'))
{
- FSPath f(*l);
+ FSPath f(library);
libraries->push_back(f.basename());
Log::get_instance()->message("cave.fix_linkage.library_path", ll_warning, lc_no_context)
- << "Argument --" << cmdline.a_libraries.long_name() << " '" << *l << "' includes a '/', which "
- "probably does not do what you want. Generally you should not specify a path to a library.";
+ << "Argument --" << cmdline.a_libraries.long_name() << " '" << library
+ << "' includes a '/', which probably does not do what you want. Generally you should not specify a path to a library.";
}
}