From 3e05d92dcb5f6c2017bc462554901ba27816bdb4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 17 Apr 2018 15:56:52 +0300 Subject: MNonCopyable - the common class to avoid declaring fake private constructors --- plugins/PluginUpdater/src/stdafx.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/PluginUpdater') 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) {} -- cgit v1.2.3