diff options
author | David Robillard <d@drobilla.net> | 2020-12-15 18:20:22 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-15 19:32:03 +0100 |
commit | 7c84fcb0e6bcddc043b7b92dd9d854167844948f (patch) | |
tree | ac20067a6ea88d37393e1180456dd877689ab0e9 /ganv | |
parent | e33f4f6a197eb3cae29dd42ea728f5f782a29897 (diff) | |
download | ganv-7c84fcb0e6bcddc043b7b92dd9d854167844948f.tar.gz ganv-7c84fcb0e6bcddc043b7b92dd9d854167844948f.tar.bz2 ganv-7c84fcb0e6bcddc043b7b92dd9d854167844948f.zip |
Initialize all variables
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); } |