diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-21 18:35:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-21 18:40:14 +0300 |
commit | 5b6db3290cb9c9817cba126bd7aea798a610c31d (patch) | |
tree | f5b51474c51988ac60c20d33d3d6837070e055ce /plugins/StatusManager/src/main.cpp | |
parent | e4e088d37070bab69b1457621706d65472874243 (diff) |
SM: C++'11 iterators
Diffstat (limited to 'plugins/StatusManager/src/main.cpp')
-rw-r--r-- | plugins/StatusManager/src/main.cpp | 6 |
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; } } |