diff options
Diffstat (limited to 'plugins/Import/src/utils.cpp')
-rw-r--r-- | plugins/Import/src/utils.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Import/src/utils.cpp b/plugins/Import/src/utils.cpp index 77e60895cd..8f83ed3f8b 100644 --- a/plugins/Import/src/utils.cpp +++ b/plugins/Import/src/utils.cpp @@ -197,18 +197,18 @@ static IconItem iconList[] = HICON GetIcon(int iIconId, bool size)
{
- for (int i = 0; i < _countof(iconList); i++)
- if (iconList[i].defIconID == iIconId)
- return IcoLib_GetIconByHandle(iconList[i].hIcolib, size);
+ for (auto &it : iconList)
+ if (it.defIconID == iIconId)
+ return IcoLib_GetIconByHandle(it.hIcolib, size);
return nullptr;
}
HANDLE GetIconHandle(int iIconId)
{
- for (int i = 0; i < _countof(iconList); i++)
- if (iconList[i].defIconID == iIconId)
- return iconList[i].hIcolib;
+ for (auto &it : iconList)
+ if (it.defIconID == iIconId)
+ return it.hIcolib;
return nullptr;
}
|