summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2018-01-22 19:11:13 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2018-01-22 19:13:10 +0100
commit36b876e544afe74ce5f7463cdf9502d3b23f3ed6 (patch)
treeff6c0bec523cb7bf2a763960f7676ae02a6f4a7c /protocols
parent4ea2523ec747335c4c915a38f2f73b5782711d24 (diff)
Gadu-Gadu: icolib const range-based loop
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Gadu-Gadu/src/icolib.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Gadu-Gadu/src/icolib.cpp b/protocols/Gadu-Gadu/src/icolib.cpp
index 53d9ed7159..040583299c 100644
--- a/protocols/Gadu-Gadu/src/icolib.cpp
+++ b/protocols/Gadu-Gadu/src/icolib.cpp
@@ -56,9 +56,9 @@ HICON LoadIconEx(const char* name, bool big)
HANDLE GetIconHandle(int iconId)
{
- for (int i = 0; i < _countof(iconList); i++)
- if (iconList[i].defIconID == iconId)
- return iconList[i].hIcolib;
+ for (const auto &icon : iconList)
+ if (icon.defIconID == iconId)
+ return icon.hIcolib;
return nullptr;
}