summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/svc_reminder.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-01-26 22:31:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-01-26 22:31:27 +0300
commit391980ce1e890445542441eeb5d9f9cc18ae1baf (patch)
treeee1b165175dcdaeeaabd2ddb822542e648663a90 /plugins/UserInfoEx/src/svc_reminder.cpp
parentbf8ad124d03b4fd059318d9ba8889b11faaf5b53 (diff)
code optimization
Diffstat (limited to 'plugins/UserInfoEx/src/svc_reminder.cpp')
-rw-r--r--plugins/UserInfoEx/src/svc_reminder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/UserInfoEx/src/svc_reminder.cpp b/plugins/UserInfoEx/src/svc_reminder.cpp
index a48187a13f..0b50dfd8ed 100644
--- a/plugins/UserInfoEx/src/svc_reminder.cpp
+++ b/plugins/UserInfoEx/src/svc_reminder.cpp
@@ -598,11 +598,11 @@ void SvcReminderCheckAll(const ENotify notify)
static int OnCListRebuildIcons(WPARAM, LPARAM)
{
- for (int i = 0; i < _countof(ghCListAnnivIcons); i++)
- ghCListAnnivIcons[i] = INVALID_HANDLE_VALUE;
+ for (auto &it : ghCListAnnivIcons)
+ it = INVALID_HANDLE_VALUE;
- for (int k = 0; k < _countof(ghCListBirthdayIcons); k++)
- ghCListBirthdayIcons[k] = INVALID_HANDLE_VALUE;
+ for (auto &it : ghCListBirthdayIcons)
+ it = INVALID_HANDLE_VALUE;
return 0;
}