summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_xptheme.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-21 18:29:19 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-21 18:40:13 +0300
commit877a1c362c0b106b251cf353f77397d1b5b08b42 (patch)
tree0291da0a01fbc8428fb1e544567a398d1e33add7 /plugins/Clist_modern/src/modern_xptheme.cpp
parentfb9f17d1290be657ea8cc85dd02c8419cad1d9c4 (diff)
Clist_Modern: C++'11 iterators
Diffstat (limited to 'plugins/Clist_modern/src/modern_xptheme.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_xptheme.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_xptheme.cpp b/plugins/Clist_modern/src/modern_xptheme.cpp
index 56fb39f0cf..6122fa21f6 100644
--- a/plugins/Clist_modern/src/modern_xptheme.cpp
+++ b/plugins/Clist_modern/src/modern_xptheme.cpp
@@ -86,8 +86,8 @@ void xpt_OnWM_THEMECHANGED()
{
mir_cslock lck(xptCS);
- for (int i = 0; i < xptObjectList.getCount(); i++)
- _sttXptReloadThemeData(&xptObjectList[i]);
+ for (auto &it : xptObjectList)
+ _sttXptReloadThemeData(it);
}
HRESULT xpt_DrawThemeBackground(XPTHANDLE xptHandle, HDC hdc, int type, int state, const RECT *sizeRect, const RECT *clipRect)