From 823e3839b108658811f689f959f51058effd82ac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 4 Jan 2018 15:09:01 +0300 Subject: =?UTF-8?q?=D0=A1++'11=20scope=20for's=20are=20suddenly=20more=20e?= =?UTF-8?q?ffective...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/FacebookRM/src/messages.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'protocols/FacebookRM/src/messages.cpp') diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp index 4bf30fc915..e634473c6d 100644 --- a/protocols/FacebookRM/src/messages.cpp +++ b/protocols/FacebookRM/src/messages.cpp @@ -168,9 +168,7 @@ void FacebookProto::ReadMessageWorker(void *p) } LIST ids(1); - for (std::set::iterator it = hContacts->begin(); it != hContacts->end(); ++it) { - MCONTACT hContact = *it; - + for (auto &hContact : *hContacts) { if (getBool(hContact, FACEBOOK_KEY_KEEP_UNREAD, 0)) continue; -- cgit v1.2.3