diff options
Diffstat (limited to 'plugins/SimpleStatusMsg/src/utils.cpp')
-rw-r--r-- | plugins/SimpleStatusMsg/src/utils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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();
}
|