diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-21 18:33:08 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-21 18:40:14 +0300 |
commit | ba75602b16e4b9b484c2c05f70c117f612c81e1d (patch) | |
tree | c19e7066ece1d545437bd8482af888660e54e0d8 /plugins/Popup/src/services.cpp | |
parent | 95ce21d8512af00a4c5f607091a459b789f79b79 (diff) |
Popup+: C++'11 iterators
Diffstat (limited to 'plugins/Popup/src/services.cpp')
-rw-r--r-- | plugins/Popup/src/services.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Popup/src/services.cpp b/plugins/Popup/src/services.cpp index f07534de09..b1d659d241 100644 --- a/plugins/Popup/src/services.cpp +++ b/plugins/Popup/src/services.cpp @@ -417,9 +417,9 @@ INT_PTR Popup_UnregisterPopupClass(WPARAM, LPARAM lParam) if (ptd == nullptr)
return 1;
- for (int i = 0; i < gTreeData.getCount(); i++)
- if (gTreeData[i] == ptd) {
- gTreeData.remove(i);
+ for (auto &it : gTreeData)
+ if (it == ptd) {
+ gTreeData.remove(it);
FreePopupClass(ptd);
return 0;
}
|