summaryrefslogtreecommitdiff
path: root/plugins/ClientChangeNotify
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-14 15:43:25 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-14 15:43:25 +0300
commit28b81bbed5d8db354349fd787c3db4123e55d423 (patch)
tree9861c246bdb7696c25adbbcd9f210dda430f846e /plugins/ClientChangeNotify
parent4b933c7b73a4151872dea3119685cdebe40532c7 (diff)
code cleaning
Diffstat (limited to 'plugins/ClientChangeNotify')
-rw-r--r--plugins/ClientChangeNotify/src/Options.cpp4
-rw-r--r--plugins/ClientChangeNotify/src/Options.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ClientChangeNotify/src/Options.cpp b/plugins/ClientChangeNotify/src/Options.cpp
index e5fcc70ca7..225a0a8309 100644
--- a/plugins/ClientChangeNotify/src/Options.cpp
+++ b/plugins/ClientChangeNotify/src/Options.cpp
@@ -479,7 +479,7 @@ void COptItem_TreeCtrl::CleanDBSettings(const CString &sModule, CString *sDBSett
db_enum_settings(NULL, TreeDeleteEnum, sModule, &TreeDeleteEnumData);
for (int i = 0; i < TreeDeleteEnumData.TreeSettings.GetSize(); i++)
- db_unset(NULL, sModule, TreeDeleteEnumData.TreeSettings[i]);
+ db_unset(0, sModule, TreeDeleteEnumData.TreeSettings[i]);
}
int COptItem_TreeCtrl::GetSelectedItemID(HWND hWnd)
@@ -741,7 +741,7 @@ void COptItem_ListCtrl::CleanDBSettings(const CString &sModule, CString *sDBSett
db_enum_settings(NULL, ListDeleteEnum, sModule, &ListDeleteEnumData);
for (int i = 0; i < ListDeleteEnumData.ListSettings.GetSize(); i++)
- db_unset(NULL, sModule, ListDeleteEnumData.ListSettings[i]);
+ db_unset(0, sModule, ListDeleteEnumData.ListSettings[i]);
}
int COptItem_ListCtrl::GetSelectedItemID(HWND hWnd)
diff --git a/plugins/ClientChangeNotify/src/Options.h b/plugins/ClientChangeNotify/src/Options.h
index 9f464d6407..9c69b4d1bc 100644
--- a/plugins/ClientChangeNotify/src/Options.h
+++ b/plugins/ClientChangeNotify/src/Options.h
@@ -38,7 +38,7 @@ public:
virtual void MemToWnd(HWND hWnd) { EnableWindow(GetDlgItem(hWnd, m_dlgItemID), m_bEnabled); }
void DBToMemToWnd(const CString &sModule, HWND hWnd, CString *sDBSettingPrefix = NULL) { DBToMem(sModule, sDBSettingPrefix); MemToWnd(hWnd); }
void WndToMemToDB(HWND hWnd, const CString &sModule, CString *sDBSettingPrefix = NULL) { WndToMem(hWnd); MemToDB(sModule, sDBSettingPrefix); }
- virtual void CleanDBSettings(const CString &sModule, CString *sDBSettingPrefix = NULL) { db_unset(NULL, sModule, sDBSettingPrefix ? (*sDBSettingPrefix + sDBSetting) : sDBSetting); }; // TODO: also set m_value to m_defValue?
+ virtual void CleanDBSettings(const CString &sModule, CString *sDBSettingPrefix = NULL) { db_unset(0, sModule, sDBSettingPrefix ? (*sDBSettingPrefix + sDBSetting) : sDBSetting); }; // TODO: also set m_value to m_defValue?
virtual void SetValue(INT_PTR) { m_bModified = true; }
virtual void SetDefValue(INT_PTR) {}