summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/psp_options.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-21 18:35:40 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-21 18:40:14 +0300
commit058282527241fe458a1aae28d565a727dcc1a811 (patch)
tree7b5d5a1a5abe8052cd9879af19135df5f58a363d /plugins/UserInfoEx/src/psp_options.cpp
parent429c0d0524e7197a593209468fef530344f5ee05 (diff)
UInfoEx: C++'11 iterators
Diffstat (limited to 'plugins/UserInfoEx/src/psp_options.cpp')
-rw-r--r--plugins/UserInfoEx/src/psp_options.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/UserInfoEx/src/psp_options.cpp b/plugins/UserInfoEx/src/psp_options.cpp
index f878983d09..e4481391ad 100644
--- a/plugins/UserInfoEx/src/psp_options.cpp
+++ b/plugins/UserInfoEx/src/psp_options.cpp
@@ -457,11 +457,9 @@ static INT_PTR CALLBACK DlgProc_AdvancedOpts(HWND hDlg, UINT uMsg, WPARAM wParam
// delete all skin icons
if (!Settings.EnumSettings(NULL, "SkinIcons"))
- for (int i = 0; i < Settings.getCount(); i++) {
- LPSTR s = Settings[i];
+ for (auto &s : Settings)
if (mir_strncmpi(s, "UserInfoEx", 10) == 0)
db_unset(NULL, "SkinIcons", s);
- }
// delete global settings
DB::Module::Delete(NULL, USERINFO"Ex");