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/SimpleStatusMsg/src/utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/SimpleStatusMsg/src/utils.cpp') diff --git a/plugins/SimpleStatusMsg/src/utils.cpp b/plugins/SimpleStatusMsg/src/utils.cpp index fda20d04a2..1b046968ff 100644 --- a/plugins/SimpleStatusMsg/src/utils.cpp +++ b/plugins/SimpleStatusMsg/src/utils.cpp @@ -48,7 +48,7 @@ HICON LoadIconEx(const char *name) HANDLE GetIconHandle(int iconId) { - for(int i = 0; i < _countof(iconList); i++) + for (int i = 0; i < _countof(iconList); i++) if (iconList[i].defIconID == iconId) return iconList[i].hIcolib; @@ -73,8 +73,8 @@ HANDLE HookProtoEvent(const char *szModule, const char *szEvent, MIRANDAHOOKPARA void UnhookProtoEvents(void) { - for (int i = 0; i < arProtoHooks.getCount(); ++i) - UnhookEvent( arProtoHooks[i] ); + for (auto &it : arProtoHooks) + UnhookEvent(it); arProtoHooks.destroy(); } -- cgit v1.2.3