summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/messages.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM/src/messages.cpp')
-rw-r--r--protocols/FacebookRM/src/messages.cpp4
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;