diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-25 18:09:42 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-25 18:09:42 +0000 |
commit | 99bea7a69e782c02d371f94a2988d49d0825fd7e (patch) | |
tree | 17331d8d614c1fe1751a351030a790bbfa5eae29 /protocols/FacebookRM/src/communication.cpp | |
parent | fae17e42b5d32ff133426893ca115310d499ab64 (diff) |
FB json parsing rewritten for new headers
git-svn-id: http://svn.miranda-ng.org/main/trunk@13832 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r-- | protocols/FacebookRM/src/communication.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index 7329b1ea6a..009b277417 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -619,7 +619,7 @@ void facebook_client::clear_notifications() { ScopedLock s(notifications_lock_); - for (std::map<std::string, facebook_notification*>::iterator it = notifications.begin(); it != notifications.end();) { + for (auto it = notifications.begin(); it != notifications.end();) { if (it->second->hWndPopup != NULL) PUDeletePopup(it->second->hWndPopup); // close popup @@ -632,7 +632,7 @@ void facebook_client::clear_notifications() void facebook_client::clear_chatrooms() { - for (std::map<std::tstring, facebook_chatroom*>::iterator it = chat_rooms.begin(); it != chat_rooms.end();) { + for (auto it = chat_rooms.begin(); it != chat_rooms.end();) { delete it->second; it = chat_rooms.erase(it); } @@ -645,9 +645,8 @@ void facebook_client::clear_chatrooms() void facebook_client::clear_readers() { for (std::map<MCONTACT, time_t>::iterator it = readers.begin(); it != readers.end();) { - if (parent->isChatRoom(it->first)) { + if (parent->isChatRoom(it->first)) parent->delSetting(it->first, FACEBOOK_KEY_MESSAGE_READERS); - } parent->delSetting(it->first, FACEBOOK_KEY_MESSAGE_READ); it = readers.erase(it); |