summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src/Common.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-12-18 10:31:58 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-12-18 10:31:58 +0000
commit040c8cd3bba9c42d5db076c6e612638a9c32a932 (patch)
tree173b10af557807143dd5037d0bc48bc866f5a63c /plugins/PluginUpdater/src/Common.h
parentb338af9aadc8f32d13a2678c932e5ee7a7d3de19 (diff)
warning fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@11506 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/Common.h')
-rw-r--r--plugins/PluginUpdater/src/Common.h7
1 files changed, 3 insertions, 4 deletions
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:
-
};
///////////////////////////////////////////////////////////////////////////////