aboutsummaryrefslogtreecommitdiff
path: root/subhook.h
diff options
context:
space:
mode:
authorZeex <zeex@rocketmail.com>2013-01-15 05:21:14 +0700
committerZeex <zeex@rocketmail.com>2013-01-15 05:21:14 +0700
commit94319e51b518b39aa0b66ad399a8755b7c09409b (patch)
tree746d2991b2d2997d73fab5c9f9e20e8cc9f6df39 /subhook.h
parent4599d630a8836e9ba1a434660d20111f40b70778 (diff)
downloadsubhook-94319e51b518b39aa0b66ad399a8755b7c09409b.zip
subhook-94319e51b518b39aa0b66ad399a8755b7c09409b.tar.gz
subhook-94319e51b518b39aa0b66ad399a8755b7c09409b.tar.bz2
Disable copying and assignment of ScopedInstall/ScopedRemove
Diffstat (limited to 'subhook.h')
-rw-r--r--subhook.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/subhook.h b/subhook.h
index 0777930..483ea9e 100644
--- a/subhook.h
+++ b/subhook.h
@@ -189,6 +189,10 @@ public:
}
private:
+ ScopedRemove(const ScopedRemove &);
+ void operator=(const ScopedRemove &);
+
+ private:
SubHook *hook_;
bool removed_;
};
@@ -208,6 +212,10 @@ public:
}
private:
+ ScopedInstall(const ScopedInstall &);
+ void operator=(const ScopedInstall &);
+
+ private:
SubHook *hook_;
bool installed_;
};