summaryrefslogtreecommitdiff
path: root/plugins/CSList/src/cslist.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-21 18:40:03 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-21 18:40:14 +0300
commit477a6ea70d0bb1b1dfe9cbd9a15b6dad0284ddeb (patch)
tree247eed13a5231c3983e343f0b7fc2a95012353c2 /plugins/CSList/src/cslist.cpp
parent9d0174ebe2bd005418855b18f737c36d5c20ab4a (diff)
all another C++'11 iterators
Diffstat (limited to 'plugins/CSList/src/cslist.cpp')
-rw-r--r--plugins/CSList/src/cslist.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/CSList/src/cslist.cpp b/plugins/CSList/src/cslist.cpp
index d90e0181d4..2bc27345bb 100644
--- a/plugins/CSList/src/cslist.cpp
+++ b/plugins/CSList/src/cslist.cpp
@@ -106,8 +106,8 @@ static int OnCreateMenuItems(WPARAM, LPARAM)
static int OnPreshutdown(WPARAM, LPARAM)
{
- for (int i = 0; i < arWindows.getCount(); i++)
- DestroyWindow(arWindows[i]->m_handle);
+ for (auto &it : arWindows)
+ DestroyWindow(it->m_handle);
return 0;
}
@@ -208,8 +208,7 @@ void SetStatus(WORD code, StatusItem* item, char *szAccName)
INT_PTR showList(WPARAM, LPARAM, LPARAM param)
{
char* szProto = (char*)param;
- for (int i = 0; i < arWindows.getCount(); i++) {
- CSWindow *p = arWindows[i];
+ for (auto &p : arWindows) {
if (!mir_strcmp(szProto, p->m_protoName)) {
ShowWindow(p->m_handle, SW_SHOW);
SetForegroundWindow(p->m_handle);