aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-12 15:29:17 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-12 15:29:17 +0100
commit8a4c64f943a22c2da2175f9f86a44fb3107b80e4 (patch)
treec715d9843aaa4e711ad1ff1fba28455dc6676b9d
parent2bf013444a4893655426801af7801698e9719147 (diff)
downloadpaludis-8a4c64f943a22c2da2175f9f86a44fb3107b80e4.tar.gz
paludis-8a4c64f943a22c2da2175f9f86a44fb3107b80e4.tar.xz
Fix cave search --and
-rw-r--r--src/clients/cave/cmd_match.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/clients/cave/cmd_match.cc b/src/clients/cave/cmd_match.cc
index ce1ebc8..69e55a1 100644
--- a/src/clients/cave/cmd_match.cc
+++ b/src/clients/cave/cmd_match.cc
@@ -445,11 +445,11 @@ MatchCommand::run_hosted(
}
bool any(false), all(true);
- for (std::list<std::string>::const_iterator t(texts.begin()), t_end(texts.end()) ;
- t != t_end ; ++t)
+ for (auto p(patterns->begin()), p_end(patterns->end()) ;
+ p != p_end ; ++p)
{
- bool current(patterns->end() != std::find_if(patterns->begin(), patterns->end(),
- std::bind(&match, *t, std::placeholders::_1, match_options.a_type.argument())));
+ bool current(texts.end() != std::find_if(texts.begin(), texts.end(),
+ std::bind(&match, std::placeholders::_1, *p, match_options.a_type.argument())));
if (match_options.a_not.specified())
current = ! current;