diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-21 18:36:16 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-21 18:40:14 +0300 |
commit | fd23a292afc4aa760a0ff8ab646eebe5942fb06d (patch) | |
tree | 31725237daf806abe7e7ab6f3fa637bc092c20ec /protocols/IcqOscarJ/src/icq_avatar.cpp | |
parent | b8a1ac529c6615d5ba6aa3d7ea9e8b4fe9ad4b71 (diff) |
ICQ: C++'11 iterators
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_avatar.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_avatar.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/IcqOscarJ/src/icq_avatar.cpp b/protocols/IcqOscarJ/src/icq_avatar.cpp index 211546a757..28ef778680 100644 --- a/protocols/IcqOscarJ/src/icq_avatar.cpp +++ b/protocols/IcqOscarJ/src/icq_avatar.cpp @@ -622,8 +622,7 @@ int CIcqProto::SetAvatarData(MCONTACT hContact, WORD wRef, const BYTE *data, siz // we failed to send request, or avatar thread not ready
// check if any request for this user is not already in the queue
- for (int i = 0; i < m_arAvatars.getCount(); i++) {
- avatars_request *ar = m_arAvatars[i];
+ for (auto ar : m_arAvatars) {
if (ar->hContact == hContact && ar->type == ART_UPLOAD) { // we found it, return error
alck.unlock();
debugLogA("Avatars: Ignoring duplicate upload avatar request.");
|