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_proto.cpp | |
parent | b8a1ac529c6615d5ba6aa3d7ea9e8b4fe9ad4b71 (diff) |
ICQ: C++'11 iterators
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_proto.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_proto.cpp | 4 |
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);
|