From 391980ce1e890445542441eeb5d9f9cc18ae1baf Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 26 Jan 2018 22:31:20 +0300 Subject: code optimization --- plugins/UserInfoEx/src/svc_reminder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/UserInfoEx/src/svc_reminder.cpp') 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; } -- cgit v1.2.3