summaryrefslogtreecommitdiff
path: root/plugins/Boltun/src/config.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-04-30 18:47:28 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-04-30 18:47:28 +0000
commit15d4346a1e3ada4bd14739b63fc239109dc96a0c (patch)
tree3b5b4a8ce280bfde515f5cffee70ba3f8ebcb778 /plugins/Boltun/src/config.h
parent0ed074b1b6d10f263f33ffd771ad0ffa5ac70011 (diff)
custom critical section class replaced with mir_cs/mir_cslock
git-svn-id: http://svn.miranda-ng.org/main/trunk@13300 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Boltun/src/config.h')
-rw-r--r--plugins/Boltun/src/config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/Boltun/src/config.h b/plugins/Boltun/src/config.h
index a1cd72c7de..3cee967d4f 100644
--- a/plugins/Boltun/src/config.h
+++ b/plugins/Boltun/src/config.h
@@ -29,12 +29,16 @@ class Property
public:
typedef const T(__thiscall BaseClass::*Getter)();
typedef const T(__thiscall BaseClass::*Setter)(const T);
+
private:
const Getter getter;
const Setter setter;
BaseClass* owner;
bool cacheValid;
T cached;
+
+ Property& operator=(const Property&);
+
public:
Property(Getter g, Setter s)
:getter(g), setter(s), cacheValid(false)
@@ -68,12 +72,16 @@ class PtrProperty
public:
typedef const T* (__thiscall BaseClass::*Getter)();
typedef const T* (__thiscall BaseClass::*Setter)(const T*);
+
private:
const Getter getter;
const Setter setter;
BaseClass* owner;
bool cacheValid;
const T* cached;
+
+ PtrProperty& operator=(const PtrProperty&);
+
public:
PtrProperty(Getter g, Setter s)
:getter(g), setter(s), cacheValid(false), cached(NULL)