diff options
author | 2016-12-06 22:46:47 -0800 | |
---|---|---|
committer | 2016-12-07 08:26:43 -0800 | |
commit | a2ffec7bfe2586f23ea05d8d0ba40623ffc9c011 (patch) | |
tree | 9dad59d53dda614f7fa7f857e2878249fb48bc89 | |
parent | 2bb7fb31360a60cdeab39e18ae37e75d482cf4e3 (diff) | |
download | paludis-a2ffec7bfe2586f23ea05d8d0ba40623ffc9c011.tar.gz paludis-a2ffec7bfe2586f23ea05d8d0ba40623ffc9c011.tar.xz |
cave: range base loopify (NFC)
-rw-r--r-- | src/clients/cave/cmd_fix_linkage.cc | 13 |
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."; } } |