diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-21 18:40:03 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-21 18:40:14 +0300 |
commit | 477a6ea70d0bb1b1dfe9cbd9a15b6dad0284ddeb (patch) | |
tree | 247eed13a5231c3983e343f0b7fc2a95012353c2 /plugins/QuickReplies | |
parent | 9d0174ebe2bd005418855b18f737c36d5c20ab4a (diff) |
all another C++'11 iterators
Diffstat (limited to 'plugins/QuickReplies')
-rw-r--r-- | plugins/QuickReplies/src/events.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/QuickReplies/src/events.cpp b/plugins/QuickReplies/src/events.cpp index 5335379dd1..23ec25f537 100644 --- a/plugins/QuickReplies/src/events.cpp +++ b/plugins/QuickReplies/src/events.cpp @@ -97,8 +97,8 @@ int OnButtonPressed(WPARAM wParam, LPARAM lParam) }
}
- for (int i = 0; i < replyList.getCount(); i++)
- mir_free(replyList[i]);
+ for (auto &it : replyList)
+ mir_free(it);
replyList.destroy();
return 1;
|