summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clistopts.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-01-26 22:31:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-01-26 22:31:27 +0300
commit391980ce1e890445542441eeb5d9f9cc18ae1baf (patch)
treeee1b165175dcdaeeaabd2ddb822542e648663a90 /plugins/Clist_modern/src/modern_clistopts.cpp
parentbf8ad124d03b4fd059318d9ba8889b11faaf5b53 (diff)
code optimization
Diffstat (limited to 'plugins/Clist_modern/src/modern_clistopts.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_clistopts.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Clist_modern/src/modern_clistopts.cpp b/plugins/Clist_modern/src/modern_clistopts.cpp
index 210d57dedb..da51bc085a 100644
--- a/plugins/Clist_modern/src/modern_clistopts.cpp
+++ b/plugins/Clist_modern/src/modern_clistopts.cpp
@@ -937,10 +937,10 @@ int CListOptInit(WPARAM wParam, LPARAM)
odp.szTitle.a = LPGEN("Row items");
odp.flags = ODPF_BOLDGROUPS;
- for (int i = 0; i < _countof(row_opt_items); i++) {
- odp.pszTemplate = MAKEINTRESOURCEA(row_opt_items[i].id);
- odp.szTab.a = row_opt_items[i].name;
- odp.pfnDlgProc = row_opt_items[i].wnd_proc;
+ for (auto &it : row_opt_items) {
+ odp.pszTemplate = MAKEINTRESOURCEA(it.id);
+ odp.szTab.a = it.name;
+ odp.pfnDlgProc = it.wnd_proc;
Options_AddPage(wParam, &odp);
}
return 0;