diff options
Diffstat (limited to 'plugins/Weather/src')
-rw-r--r-- | plugins/Weather/src/weather_icons.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Weather/src/weather_icons.cpp b/plugins/Weather/src/weather_icons.cpp index e9b4c52174..1840dcde66 100644 --- a/plugins/Weather/src/weather_icons.cpp +++ b/plugins/Weather/src/weather_icons.cpp @@ -51,9 +51,9 @@ HICON LoadIconEx(const char* name, bool big) HANDLE GetIconHandle(const char* name)
{
- for (int i = 0; i < _countof(iconList); i++)
- if (mir_strcmp(iconList[i].szName, name) == 0)
- return iconList[i].hIcolib;
+ for (auto &it : iconList)
+ if (mir_strcmp(it.szName, name) == 0)
+ return it.hIcolib;
return nullptr;
}
|