summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-03-12 17:01:42 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-03-12 17:01:42 +0300
commit62c85038cd5f3dcc53f3fb60549b6130532db236 (patch)
tree6c6c1846d8faf89867483227282a44a27854c529 /include
parent645038464ec0fdc59f358f65691f52e8696751ea (diff)
CCtrlBase:
- obsolete private declarations removed; - initialized member CCtrlBase::m_bSilent inited; - warning fixes
Diffstat (limited to 'include')
-rw-r--r--include/m_gui.h19
1 files changed, 3 insertions, 16 deletions
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<class T>
@@ -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<Type> 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<Type> 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<CCtrlBase> OnChange;