diff options
Diffstat (limited to 'plugins/PluginUpdater/src')
-rw-r--r-- | plugins/PluginUpdater/src/Common.h | 7 |
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:
-
};
///////////////////////////////////////////////////////////////////////////////
|