From 477a6ea70d0bb1b1dfe9cbd9a15b6dad0284ddeb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 21 Feb 2018 18:40:03 +0300 Subject: all another C++'11 iterators --- plugins/QuickReplies/src/events.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/QuickReplies') 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; -- cgit v1.2.3