summaryrefslogtreecommitdiffstats
path: root/ganv/Item.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-29 19:15:49 +0100
committerDavid Robillard <d@drobilla.net>2020-11-29 19:15:49 +0100
commit2c17463cce43e5d9d846072e6a7d03f58760a607 (patch)
treeba7f669eb72b54553b04d5cb6827cd6d249b50ec /ganv/Item.hpp
parent8c3e0c4d90fce56f59aab84f1f62aaf484706ce1 (diff)
downloadganv-2c17463cce43e5d9d846072e6a7d03f58760a607.tar.gz
ganv-2c17463cce43e5d9d846072e6a7d03f58760a607.tar.bz2
ganv-2c17463cce43e5d9d846072e6a7d03f58760a607.zip
Use modern noncopyable pattern
Diffstat (limited to 'ganv/Item.hpp')
-rw-r--r--ganv/Item.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/ganv/Item.hpp b/ganv/Item.hpp
index fcb98ef..8f0f9c2 100644
--- a/ganv/Item.hpp
+++ b/ganv/Item.hpp
@@ -47,6 +47,12 @@ public:
}
}
+ Item(const Item&) = delete;
+ Item& operator=(const Item&) = delete;
+
+ Item(Item&&) = delete;
+ Item& operator=(Item&&) = delete;
+
virtual ~Item() {
gtk_object_destroy(GTK_OBJECT(_gobj));
}