summaryrefslogtreecommitdiff
path: root/plugins/Boltun/src/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Boltun/src/config.h')
-rw-r--r--plugins/Boltun/src/config.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/Boltun/src/config.h b/plugins/Boltun/src/config.h
index eeb697d4b0..b7b4243963 100644
--- a/plugins/Boltun/src/config.h
+++ b/plugins/Boltun/src/config.h
@@ -24,7 +24,7 @@
class BoltunConfig;
template <class T, class BaseClass>
-class Property
+class Property : private MNonCopyable
{
public:
typedef const T(__thiscall BaseClass::*Getter)();
@@ -37,8 +37,6 @@ private:
bool cacheValid;
T cached;
- Property& operator=(const Property&);
-
public:
Property(Getter g, Setter s)
:getter(g), setter(s), cacheValid(false)
@@ -67,7 +65,7 @@ public:
};
template <class T, class BaseClass>
-class PtrProperty
+class PtrProperty : private MNonCopyable
{
public:
typedef const T* (__thiscall BaseClass::*Getter)();
@@ -80,8 +78,6 @@ private:
bool cacheValid;
const T* cached;
- PtrProperty& operator=(const PtrProperty&);
-
public:
PtrProperty(Getter g, Setter s)
:getter(g), setter(s), cacheValid(false), cached(nullptr)