diff options
author | George Hazan <ghazan@miranda.im> | 2018-01-04 15:09:01 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-01-04 15:09:01 +0300 |
commit | 823e3839b108658811f689f959f51058effd82ac (patch) | |
tree | b65b8618fb5c61c7e73cf8c0204cbd961a6b08c9 /protocols/FacebookRM/src/messages.cpp | |
parent | d3f84250fdaa48e0ca1032b92b9c0f827707655b (diff) |
ะก++'11 scope for's are suddenly more effective...
Diffstat (limited to 'protocols/FacebookRM/src/messages.cpp')
-rw-r--r-- | protocols/FacebookRM/src/messages.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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<char> ids(1); - for (std::set<MCONTACT>::iterator it = hContacts->begin(); it != hContacts->end(); ++it) { - MCONTACT hContact = *it; - + for (auto &hContact : *hContacts) { if (getBool(hContact, FACEBOOK_KEY_KEEP_UNREAD, 0)) continue; |