diff options
author | David Robillard <d@drobilla.net> | 2020-12-15 18:55:03 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-15 19:32:26 +0100 |
commit | 7bc3e5ca81642996fae52e4d8ca6add67b994eaf (patch) | |
tree | 857c75460b5ddb10a582bdac860048e59fa0cb30 /ganv | |
parent | de277295f7e879eba882b158015ba99486b142a5 (diff) | |
download | ganv-7bc3e5ca81642996fae52e4d8ca6add67b994eaf.tar.gz ganv-7bc3e5ca81642996fae52e4d8ca6add67b994eaf.tar.bz2 ganv-7bc3e5ca81642996fae52e4d8ca6add67b994eaf.zip |
Use explicit conversions
Diffstat (limited to 'ganv')
-rw-r--r-- | ganv/Edge.hpp | 2 | ||||
-rw-r--r-- | ganv/Item.hpp | 2 | ||||
-rw-r--r-- | ganv/Module.hpp | 2 |
3 files changed, 3 insertions, 3 deletions
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<typename T, typename U> - iterator_base(const iterator_base<T, U>& i) + explicit iterator_base(const iterator_base<T, U>& i) : _module(i._module) , _index(i._index) {} |