summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2012-03-29 08:44:28 -0700
committerPixel <pixel@nobis-crew.org>2012-03-29 08:44:28 -0700
commit11478487e7b3eb24dccb829aa201c3358cfc7e68 (patch)
treef3354f1180d11d97a7f6046bc28af59ba3b5634d
parent0028694f8a4f20b634d71ac04355679a442c8cdb (diff)
Preventing Handles to be copied.
-rw-r--r--includes/Handle.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/Handle.h b/includes/Handle.h
index fede9c7..5634583 100644
--- a/includes/Handle.h
+++ b/includes/Handle.h
@@ -72,6 +72,9 @@ class Handle {
friend class IO;
volatile int m_refCount;
+
+ Handle(const Handle &) = delete;
+ Handle & operator=(const Handle &) = delete;
};
class HPrinter : public Handle {