diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-17 15:56:52 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-17 15:56:52 +0300 |
commit | 3e05d92dcb5f6c2017bc462554901ba27816bdb4 (patch) | |
tree | 3276a7c3527006b74afc00c197ab48a3a43b1e9e /plugins/PluginUpdater | |
parent | e285d61d903c2616f5a7ea3026a1068ceb59b513 (diff) |
MNonCopyable - the common class to avoid declaring fake private constructors
Diffstat (limited to 'plugins/PluginUpdater')
-rw-r--r-- | plugins/PluginUpdater/src/stdafx.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/PluginUpdater/src/stdafx.h b/plugins/PluginUpdater/src/stdafx.h index e3a4f0a354..6a3c73c00a 100644 --- a/plugins/PluginUpdater/src/stdafx.h +++ b/plugins/PluginUpdater/src/stdafx.h @@ -172,10 +172,9 @@ extern IconItemT iconList[]; void UninitCheck(void);
void UninitListNew(void);
-class AutoHandle
+class AutoHandle : private MNonCopyable
{
HANDLE &m_handle;
- AutoHandle& operator=(const AutoHandle&) { return *this; }
public:
AutoHandle(HANDLE &_handle) : m_handle(_handle) {}
|