From 098ddd3a95c347f28ea4f69317054a73242adb8a Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sat, 29 Nov 2014 11:56:39 +0100 Subject: [PATCH] make copy constructor and a assignment operator private to avoid misuse of helper class scope guard Signed-off-by: Kim Kulling --- code/BaseImporter.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/BaseImporter.h b/code/BaseImporter.h index 775add800..23dc88523 100644 --- a/code/BaseImporter.h +++ b/code/BaseImporter.h @@ -90,6 +90,10 @@ struct ScopeGuard } private: + // no copying allowed. + ScopeGuard( const ScopeGuard & ); + ScopeGuard &operator = ( const ScopeGuard & ); + T* obj; bool mdismiss; };