summaryrefslogtreecommitdiff
path: root/protocols/MSN/src/msn_avatar.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-21 18:36:45 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-21 18:40:14 +0300
commite8f69d4e566a3e73ff656beebcae9916e9148589 (patch)
tree1609c337a76dd79d198fecfdfa5d3acfbd2c45cf /protocols/MSN/src/msn_avatar.cpp
parent6e96535fdbb886dcad1a3396659b368283922e64 (diff)
MSN: C++'11 iterators
Diffstat (limited to 'protocols/MSN/src/msn_avatar.cpp')
-rw-r--r--protocols/MSN/src/msn_avatar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/MSN/src/msn_avatar.cpp b/protocols/MSN/src/msn_avatar.cpp
index 83dce488a8..cf520027a7 100644
--- a/protocols/MSN/src/msn_avatar.cpp
+++ b/protocols/MSN/src/msn_avatar.cpp
@@ -39,8 +39,8 @@ void CMsnProto::pushAvatarRequest(MCONTACT hContact, LPCSTR pszUrl)
if (pszUrl != nullptr && *pszUrl != 0) {
mir_cslock lck(csAvatarQueue);
- for (int i = 0; i < lsAvatarQueue.getCount(); i++)
- if (lsAvatarQueue[i]->hContact == hContact)
+ for (auto &it : lsAvatarQueue)
+ if (it->hContact == hContact)
return;
lsAvatarQueue.insert(new AvatarQueueEntry(hContact, pszUrl));