From 7be70aab59051aa358547a3e530cc95490c04232 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 17 Apr 2014 14:19:55 -0500 Subject: Require the use of C++11 --- src/journal.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/journal.cc') diff --git a/src/journal.cc b/src/journal.cc index 2512664f..804c9ee2 100644 --- a/src/journal.cc +++ b/src/journal.cc @@ -409,10 +409,9 @@ bool journal_t::add_xact(xact_t * xact) foreach (post_t * post, xact->posts) { account_t * acct = post->account; if (acct->deferred_posts) { - deferred_posts_map_t::iterator - i = acct->deferred_posts->find(uuid); + auto i = acct->deferred_posts->find(uuid); if (i != acct->deferred_posts->end()) { - foreach (post_t * rpost, (*i).second) + for (post_t * rpost : (*i).second) if (acct == rpost->account) acct->add_post(rpost); acct->deferred_posts->erase(i); -- cgit v1.2.3