summaryrefslogtreecommitdiff
path: root/plugins/StatusManager/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-21 18:35:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-21 18:40:14 +0300
commit5b6db3290cb9c9817cba126bd7aea798a610c31d (patch)
treef5b51474c51988ac60c20d33d3d6837070e055ce /plugins/StatusManager/src/main.cpp
parente4e088d37070bab69b1457621706d65472874243 (diff)
SM: C++'11 iterators
Diffstat (limited to 'plugins/StatusManager/src/main.cpp')
-rw-r--r--plugins/StatusManager/src/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/StatusManager/src/main.cpp b/plugins/StatusManager/src/main.cpp
index 478112b6af..651123f71c 100644
--- a/plugins/StatusManager/src/main.cpp
+++ b/plugins/StatusManager/src/main.cpp
@@ -103,9 +103,9 @@ int OnAccChanged(WPARAM wParam, LPARAM lParam)
break;
case PRAC_REMOVED:
- for (int i = 0; i < protoList.getCount(); i++) {
- if (!mir_strcmp(protoList[i].m_szName, pa->szModuleName)) {
- protoList.remove(i);
+ for (auto &it : protoList) {
+ if (!mir_strcmp(it->m_szName, pa->szModuleName)) {
+ protoList.remove(it);
break;
}
}