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/opt_adv.cpp | |
parent | 95ce21d8512af00a4c5f607091a459b789f79b79 (diff) |
Popup+: C++'11 iterators
Diffstat (limited to 'plugins/Popup/src/opt_adv.cpp')
-rw-r--r-- | plugins/Popup/src/opt_adv.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Popup/src/opt_adv.cpp b/plugins/Popup/src/opt_adv.cpp index f9d4f75f8e..3ff5656108 100644 --- a/plugins/Popup/src/opt_adv.cpp +++ b/plugins/Popup/src/opt_adv.cpp @@ -37,8 +37,8 @@ void OptAdv_RegisterVfx(char *name) void OptAdv_UnregisterVfx()
{
- for (int i = 0; i < g_lstPopupVfx.getCount(); ++i)
- mir_free(g_lstPopupVfx[i]);
+ for (auto &it : g_lstPopupVfx)
+ mir_free(it);
g_lstPopupVfx.destroy();
}
|