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/Edge.hpp | |
parent | e33f4f6a197eb3cae29dd42ea728f5f782a29897 (diff) | |
download | ganv-7c84fcb0e6bcddc043b7b92dd9d854167844948f.tar.gz ganv-7c84fcb0e6bcddc043b7b92dd9d854167844948f.tar.bz2 ganv-7c84fcb0e6bcddc043b7b92dd9d854167844948f.zip |
Initialize all variables
Diffstat (limited to 'ganv/Edge.hpp')
-rw-r--r-- | ganv/Edge.hpp | 7 |
1 files changed, 3 insertions, 4 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 |