From 36b876e544afe74ce5f7463cdf9502d3b23f3ed6 Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Mon, 22 Jan 2018 19:11:13 +0100 Subject: Gadu-Gadu: icolib const range-based loop --- protocols/Gadu-Gadu/src/icolib.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Gadu-Gadu/src') 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; } -- cgit v1.2.3