diff options
-rw-r--r-- | .clang-tidy | 2 | ||||
-rw-r--r-- | src/Configuration.hpp | 3 | ||||
-rw-r--r-- | src/Legend.hpp | 2 | ||||
-rw-r--r-- | src/PatchageCanvas.cpp | 2 | ||||
-rw-r--r-- | src/PortID.hpp | 2 |
5 files changed, 5 insertions, 6 deletions
diff --git a/.clang-tidy b/.clang-tidy index aa43dee..d00de40 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -31,9 +31,7 @@ Checks: > -fuchsia-multiple-inheritance, -fuchsia-overloaded-operator, -google-default-arguments, - -google-explicit-constructor, -google-runtime-references, - -hicpp-explicit-conversions, -hicpp-no-array-decay, -hicpp-signed-bitwise, -llvm-header-guard, diff --git a/src/Configuration.hpp b/src/Configuration.hpp index 9516310..6d6b54a 100644 --- a/src/Configuration.hpp +++ b/src/Configuration.hpp @@ -115,9 +115,10 @@ public: private: struct ModuleSettings { - ModuleSettings(bool s = false) + explicit ModuleSettings(bool s = false) : split(s) {} + boost::optional<Coord> input_location; boost::optional<Coord> output_location; boost::optional<Coord> inout_location; diff --git a/src/Legend.hpp b/src/Legend.hpp index 2b3b7f6..cb05faf 100644 --- a/src/Legend.hpp +++ b/src/Legend.hpp @@ -26,7 +26,7 @@ class Legend : public Gtk::HBox { public: - Legend(const Configuration& configuration) + explicit Legend(const Configuration& configuration) { add_button(PortType::jack_audio, "Audio", diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp index 7a75046..0408ccd 100644 --- a/src/PatchageCanvas.cpp +++ b/src/PatchageCanvas.cpp @@ -138,7 +138,7 @@ struct RemovePortsData { using Predicate = bool (*)(const PatchagePort*); - RemovePortsData(Predicate p) + explicit RemovePortsData(Predicate p) : pred(p) {} diff --git a/src/PortID.hpp b/src/PortID.hpp index 06d25ec..5b3ec8b 100644 --- a/src/PortID.hpp +++ b/src/PortID.hpp @@ -49,7 +49,7 @@ struct PortID } #ifdef PATCHAGE_LIBJACK - PortID(jack_port_id_t jack_id, bool ign = false) + explicit PortID(jack_port_id_t jack_id, bool ign = false) : type(Type::jack_id) { id.jack_id = jack_id; |