summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/mir_contactqueue.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-21 18:35:40 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-21 18:40:14 +0300
commit058282527241fe458a1aae28d565a727dcc1a811 (patch)
tree7b5d5a1a5abe8052cd9879af19135df5f58a363d /plugins/UserInfoEx/src/mir_contactqueue.cpp
parent429c0d0524e7197a593209468fef530344f5ee05 (diff)
UInfoEx: C++'11 iterators
Diffstat (limited to 'plugins/UserInfoEx/src/mir_contactqueue.cpp')
-rw-r--r--plugins/UserInfoEx/src/mir_contactqueue.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/UserInfoEx/src/mir_contactqueue.cpp b/plugins/UserInfoEx/src/mir_contactqueue.cpp
index c9f22502b3..9a734ba968 100644
--- a/plugins/UserInfoEx/src/mir_contactqueue.cpp
+++ b/plugins/UserInfoEx/src/mir_contactqueue.cpp
@@ -51,8 +51,8 @@ CContactQueue::~CContactQueue()
for (int count = 0; _status != STOPPED && ++count < 50;)
Sleep(10);
- for (int i = 0; i < _queue.getCount(); i++)
- mir_free(_queue[i]);
+ for (auto &it : _queue)
+ mir_free(it);
CloseHandle(_hEvent);
}