diff options
Diffstat (limited to 'ganv')
-rw-r--r-- | ganv/Edge.hpp | 7 | ||||
-rw-r--r-- | ganv/Item.hpp | 1 | ||||
-rw-r--r-- | ganv/Node.hpp | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/ganv/Edge.hpp b/ganv/Edge.hpp index c7056a3..3dd08f3 100644 --- a/ganv/Edge.hpp +++ b/ganv/Edge.hpp @@ -59,6 +59,9 @@ public: : Item(GANV_ITEM(gobj)) {} + Edge(const Edge& copy) = delete; + Edge& operator=(const Edge& other) = delete; + ~Edge() override { if (_gobj && ganv_item_get_parent(_gobj)) { g_object_unref(_gobj); @@ -81,10 +84,6 @@ public: GanvEdge* gobj() { return reinterpret_cast<GanvEdge*>(_gobj); } const GanvEdge* gobj() const { return reinterpret_cast<GanvEdge*>(_gobj); } - -private: - Edge(const Edge& copy); - Edge& operator=(const Edge& other); }; } // namespace Ganv diff --git a/ganv/Item.hpp b/ganv/Item.hpp index 09e2f13..1dfe4eb 100644 --- a/ganv/Item.hpp +++ b/ganv/Item.hpp @@ -21,7 +21,6 @@ #include "ganv/wrap.hpp" #include <gdk/gdk.h> -#include <gdkmm/event.h> #include <glib-object.h> #include <glib.h> #include <gobject/gclosure.h> diff --git a/ganv/Node.hpp b/ganv/Node.hpp index 95c66a4..e075e73 100644 --- a/ganv/Node.hpp +++ b/ganv/Node.hpp @@ -103,7 +103,7 @@ private: static void on_notify_bool(GObject* gobj, GParamSpec* pspec, gpointer signal) { - gboolean value; + gboolean value = FALSE; g_object_get(gobj, g_param_spec_get_name(pspec), &value, nullptr); static_cast<sigc::signal<bool, gboolean>*>(signal)->emit(value); } |