From 3ad5334f17119c9ae010d5059f5cfb1831c9ddbd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 17 Mar 2018 22:11:51 +0300 Subject: more warning fixes --- plugins/UserInfoEx/src/psp_options.cpp | 3 +-- plugins/UserInfoEx/src/svc_reminder.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'plugins/UserInfoEx/src') diff --git a/plugins/UserInfoEx/src/psp_options.cpp b/plugins/UserInfoEx/src/psp_options.cpp index 78466a2838..a27b0c6190 100644 --- a/plugins/UserInfoEx/src/psp_options.cpp +++ b/plugins/UserInfoEx/src/psp_options.cpp @@ -452,8 +452,7 @@ static INT_PTR CALLBACK DlgProc_AdvancedOpts(HWND hDlg, UINT uMsg, WPARAM wParam LPGENW("This will delete all settings, you've made!\nAll TreeView settings, window positions and any other settings!\n\nAre you sure to proceed?")); if (WantReset) { - MCONTACT hContact; - DB::CEnumList Settings; + DB::CEnumList Settings; // delete all skin icons if (!Settings.EnumSettings(NULL, "SkinIcons")) diff --git a/plugins/UserInfoEx/src/svc_reminder.cpp b/plugins/UserInfoEx/src/svc_reminder.cpp index c1e60e7531..b76227f7de 100644 --- a/plugins/UserInfoEx/src/svc_reminder.cpp +++ b/plugins/UserInfoEx/src/svc_reminder.cpp @@ -726,10 +726,10 @@ static INT_PTR BackupBirthdayService(WPARAM hContact, LPARAM lParam) else { WORD a1 = 0; - //walk through all the contacts stored in the DB - for (auto &hContact : Contacts()) - if (!db_mc_isSub(hContact) && !mdb.DBGetBirthDate(hContact)) - mdb.BackupBirthday(hContact, nullptr, TRUE, &a1); + // walk through all the contacts stored in the DB + for (auto &cc : Contacts()) + if (!db_mc_isSub(cc) && !mdb.DBGetBirthDate(cc)) + mdb.BackupBirthday(cc, nullptr, TRUE, &a1); } if (lParam != TRUE) { -- cgit v1.2.3