From e5048ec71bf114c351c62844b7603893195df4d4 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 31 Jul 2008 17:48:29 -0400 Subject: Change many uses of for+iterator to use Boost.Foreach. --- session.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'session.cc') diff --git a/session.cc b/session.cc index 6f44cee2..407f6176 100644 --- a/session.cc +++ b/session.cc @@ -222,10 +222,8 @@ namespace { if (regexp.match(account->fullname())) return account; - for (accounts_map::iterator i = account->accounts.begin(); - i != account->accounts.end(); - i++) - if (account_t * a = find_account_re_((*i).second, regexp)) + foreach (accounts_map::value_type& pair, account->accounts) + if (account_t * a = find_account_re_(pair.second, regexp)) return a; return NULL; -- cgit v1.2.3