summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/icq_proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-21 18:36:16 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-21 18:40:14 +0300
commitfd23a292afc4aa760a0ff8ab646eebe5942fb06d (patch)
tree31725237daf806abe7e7ab6f3fa637bc092c20ec /protocols/IcqOscarJ/src/icq_proto.cpp
parentb8a1ac529c6615d5ba6aa3d7ea9e8b4fe9ad4b71 (diff)
ICQ: C++'11 iterators
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_proto.cpp')
-rw-r--r--protocols/IcqOscarJ/src/icq_proto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/IcqOscarJ/src/icq_proto.cpp b/protocols/IcqOscarJ/src/icq_proto.cpp
index 8cc92b3f96..16efe23929 100644
--- a/protocols/IcqOscarJ/src/icq_proto.cpp
+++ b/protocols/IcqOscarJ/src/icq_proto.cpp
@@ -208,8 +208,8 @@ CIcqProto::~CIcqProto()
SAFE_FREE((void**)&servlistQueueList);
// Finalize avatars
- for (int i = 0; i < m_arAvatars.getCount(); i++)
- delete m_arAvatars[i];
+ for (auto &it : m_arAvatars)
+ delete it;
// NetLib clean-up
Netlib_CloseHandle(m_hDirectNetlibUser);