summaryrefslogtreecommitdiffstats
path: root/ganv
diff options
context:
space:
mode:
Diffstat (limited to 'ganv')
-rw-r--r--ganv/Edge.hpp5
-rw-r--r--ganv/Node.hpp6
2 files changed, 10 insertions, 1 deletions
diff --git a/ganv/Edge.hpp b/ganv/Edge.hpp
index 71a2ed3..a0d9a7c 100644
--- a/ganv/Edge.hpp
+++ b/ganv/Edge.hpp
@@ -59,9 +59,12 @@ public:
: Item(GANV_ITEM(gobj))
{}
- Edge(const Edge& copy) = delete;
+ Edge(const Edge&) = delete;
Edge& operator=(const Edge& other) = delete;
+ Edge(Edge&&) = delete;
+ Edge& operator=(Edge&&) = delete;
+
~Edge() override {
if (_gobj && ganv_item_get_parent(_gobj)) {
g_object_unref(_gobj);
diff --git a/ganv/Node.hpp b/ganv/Node.hpp
index e075e73..7980566 100644
--- a/ganv/Node.hpp
+++ b/ganv/Node.hpp
@@ -45,6 +45,12 @@ public:
CONNECT_PROP_SIGNAL(gobj, selected, on_notify_bool, &Node::on_selected)
}
+ Node(const Node&) = delete;
+ Node& operator=(const Node&) = delete;
+
+ Node(Node&&) = delete;
+ Node& operator=(Node&&) = delete;
+
~Node() override {
g_object_unref(_gobj);
}