diff options
-rw-r--r-- | .clang-tidy | 2 | ||||
-rw-r--r-- | ganv/Edge.hpp | 2 | ||||
-rw-r--r-- | ganv/Item.hpp | 2 | ||||
-rw-r--r-- | ganv/Module.hpp | 2 | ||||
-rw-r--r-- | src/Canvas.cpp | 2 |
5 files changed, 4 insertions, 6 deletions
diff --git a/.clang-tidy b/.clang-tidy index d1bb0c4..57cfc9e 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -45,11 +45,9 @@ Checks: > -fuchsia-overloaded-operator, -fuchsia-statically-constructed-objects, -google-build-using-namespace, - -google-explicit-constructor, -google-readability-casting, -google-readability-todo, -google-runtime-references, - -hicpp-explicit-conversions, -hicpp-multiway-paths-covered, -hicpp-no-array-decay, -hicpp-signed-bitwise, 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) {} diff --git a/src/Canvas.cpp b/src/Canvas.cpp index 6239bed..92258bd 100644 --- a/src/Canvas.cpp +++ b/src/Canvas.cpp @@ -219,7 +219,7 @@ panic_root_destroyed(GtkObject* object, gpointer data) } struct GanvCanvasImpl { - GanvCanvasImpl(GanvCanvas* canvas) + explicit GanvCanvasImpl(GanvCanvas* canvas) : _gcanvas(canvas) , _wrapper(NULL) , _connect_port(NULL) |