diff options
author | George Hazan <george.hazan@gmail.com> | 2015-07-26 13:43:27 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-07-26 13:43:27 +0000 |
commit | 38f9ee31afcb519f7ecba02b56737ae637de5c7a (patch) | |
tree | 98a676cd76c8897c1a12ae69a4a3c740ac5cc065 /plugins/ClientChangeNotify/src/CommonLibs/Options.h | |
parent | f4af257e9365602dc81a4b324b0ffeed1e0b2eef (diff) |
more warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@14728 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ClientChangeNotify/src/CommonLibs/Options.h')
-rw-r--r-- | plugins/ClientChangeNotify/src/CommonLibs/Options.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/plugins/ClientChangeNotify/src/CommonLibs/Options.h b/plugins/ClientChangeNotify/src/CommonLibs/Options.h index 07ed3dca28..5d429b8a8a 100644 --- a/plugins/ClientChangeNotify/src/CommonLibs/Options.h +++ b/plugins/ClientChangeNotify/src/CommonLibs/Options.h @@ -33,20 +33,18 @@ public: COptItem() {}
COptItem(int DlgItemID, char *szDBSetting, int nValueSize, int lParam = 0, bool ReadOnly = false):
DlgItemID(DlgItemID), nValueSize(nValueSize), sDBSetting(szDBSetting), lParam(lParam), Enabled(true), ReadOnly(ReadOnly), Modified(false) {}
-/* COptItem(const COptItem &Item): DlgItemID(Item.DlgItemID), nValueSize(Item.nValueSize),
- sDBSetting(Item.szDBSetting), lParam(Item.lParam), Enabled(Item.Enabled) {};*/
virtual ~COptItem() {}
- virtual void DBToMem(CString &sModule, CString *sDBSettingPrefix = NULL) {Modified = false;}
- virtual void MemToDB(CString &sModule, CString *sDBSettingPrefix = NULL) {Modified = false;}
- virtual void WndToMem(HWND hWnd) {}
+ virtual void DBToMem(CString&, CString* = NULL) { Modified = false; }
+ virtual void MemToDB(CString&, CString* = NULL) { Modified = false; }
+ virtual void WndToMem(HWND) {}
virtual void MemToWnd(HWND hWnd) {EnableWindow(GetDlgItem(hWnd, DlgItemID), Enabled);}
void DBToMemToWnd(CString &sModule, HWND hWnd, CString *sDBSettingPrefix = NULL) {DBToMem(sModule, sDBSettingPrefix); MemToWnd(hWnd);}
void WndToMemToDB(HWND hWnd, CString &sModule, CString *sDBSettingPrefix = NULL) {WndToMem(hWnd); MemToDB(sModule, sDBSettingPrefix);}
virtual void CleanDBSettings(CString &sModule, CString *sDBSettingPrefix = NULL) {db_unset(NULL, sModule, sDBSettingPrefix ? (*sDBSettingPrefix + sDBSetting) : sDBSetting);}; // TODO: also set Value to DefValue?
- virtual void SetValue(int Value) {Modified = true;}
- virtual void SetDefValue(int DefValue) {}
+ virtual void SetValue(int) {Modified = true;}
+ virtual void SetDefValue(int) {}
virtual int GetValue() {return 0;}
virtual int GetDefValue() {return 0;}
int GetDBValue(CString &sModule, CString *sDBSettingPrefix = NULL) {DBToMem(sModule, sDBSettingPrefix); return GetValue();}
|