summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/psp_options.cpp
diff options
context:
space:
mode:
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");