From 62c85038cd5f3dcc53f3fb60549b6130532db236 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 12 Mar 2019 17:01:42 +0300 Subject: CCtrlBase: - obsolete private declarations removed; - initialized member CCtrlBase::m_bSilent inited; - warning fixes --- include/m_gui.h | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'include') diff --git a/include/m_gui.h b/include/m_gui.h index 41fc37a9a7..28cc1dc958 100644 --- a/include/m_gui.h +++ b/include/m_gui.h @@ -104,7 +104,7 @@ struct CMDBTraits<8> } }; -class CMOptionBase +class CMOptionBase : public MNonCopyable { public: __forceinline const char* GetDBModuleName() const { return m_szModuleName; } @@ -121,10 +121,6 @@ protected: char *m_szModuleName; char *m_szSetting; - -private: - CMOptionBase(const CMOptionBase &) {} - void operator= (const CMOptionBase &) {} }; template @@ -159,9 +155,6 @@ public: private: Type m_default; - - CMOption(const CMOption &) : CMOptionBase(NULL, NULL, DBVT_DELETED) {} - void operator= (const CMOption &) {} }; #ifdef M_SYSTEM_CPP_H__ @@ -202,9 +195,6 @@ public: private: const Type *m_default; mir_ptr m_value; - - CMOption(const CMOption &) : CMOptionBase((char*)nullptr, nullptr) {} - void operator= (const CMOption &) {} }; template<> @@ -243,9 +233,6 @@ public: private: const Type *m_default; mir_ptr m_value; - - CMOption(const CMOption &) : CMOptionBase((char*)nullptr, nullptr) {} - void operator= (const CMOption &) {} }; #endif @@ -572,10 +559,10 @@ public: virtual void OnReset(); protected: - HWND m_hwnd; // must be the first data item + HWND m_hwnd = nullptr; // must be the first data item int m_idCtrl; CDlgBase* m_parentWnd; - bool m_bChanged, m_bSilent, m_bUseSystemColors; + bool m_bChanged = false, m_bSilent = false, m_bUseSystemColors = false; public: CCallback OnChange; -- cgit v1.2.3