From 040c8cd3bba9c42d5db076c6e612638a9c32a932 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 18 Dec 2014 10:31:58 +0000 Subject: warning fix git-svn-id: http://svn.miranda-ng.org/main/trunk@11506 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/Common.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/PluginUpdater/src') diff --git a/plugins/PluginUpdater/src/Common.h b/plugins/PluginUpdater/src/Common.h index 45f60caeb7..d603fd7ef6 100644 --- a/plugins/PluginUpdater/src/Common.h +++ b/plugins/PluginUpdater/src/Common.h @@ -152,10 +152,12 @@ void DoCheck(bool bSilent); void UninitCheck(void); void UninitListNew(void); -struct AutoHandle +class AutoHandle { HANDLE &m_handle; + AutoHandle& operator=(const AutoHandle&) { return *this; } +public: AutoHandle(HANDLE &_handle) : m_handle(_handle) {} ~AutoHandle() { @@ -164,9 +166,6 @@ struct AutoHandle m_handle = 0; } } - -private: - }; /////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3