From 7bc3e5ca81642996fae52e4d8ca6add67b994eaf Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 15 Dec 2020 18:55:03 +0100 Subject: Use explicit conversions --- ganv/Edge.hpp | 2 +- ganv/Item.hpp | 2 +- ganv/Module.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ganv') diff --git a/ganv/Edge.hpp b/ganv/Edge.hpp index 3dd08f3..71a2ed3 100644 --- a/ganv/Edge.hpp +++ b/ganv/Edge.hpp @@ -55,7 +55,7 @@ public: nullptr))) {} - Edge(GanvEdge* gobj) + explicit Edge(GanvEdge* gobj) : Item(GANV_ITEM(gobj)) {} diff --git a/ganv/Item.hpp b/ganv/Item.hpp index 1dfe4eb..e6b690c 100644 --- a/ganv/Item.hpp +++ b/ganv/Item.hpp @@ -36,7 +36,7 @@ namespace Ganv { */ class Item : public sigc::trackable { public: - Item(GanvItem* gobj) + explicit Item(GanvItem* gobj) : _gobj(gobj) { ganv_item_set_wrapper(gobj, this); diff --git a/ganv/Module.hpp b/ganv/Module.hpp index 343b815..cfe9407 100644 --- a/ganv/Module.hpp +++ b/ganv/Module.hpp @@ -70,7 +70,7 @@ public: public: iterator_base(GanvModule* m, guint i) : _module(m), _index(i) {} template - iterator_base(const iterator_base& i) + explicit iterator_base(const iterator_base& i) : _module(i._module) , _index(i._index) {} -- cgit v1.2.1