diff options
author | David Robillard <d@drobilla.net> | 2020-11-27 17:57:58 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-27 21:42:52 +0100 |
commit | c4ba42fa4b2972ac1f636b6683f791dd72b71036 (patch) | |
tree | 0e078325fe6b27b82eb5adc00795a4672b5ff08e /src | |
parent | b04fa862a1daeabd0a60a479cb5e3cacac4c94b2 (diff) | |
download | patchage-c4ba42fa4b2972ac1f636b6683f791dd72b71036.tar.gz patchage-c4ba42fa4b2972ac1f636b6683f791dd72b71036.tar.bz2 patchage-c4ba42fa4b2972ac1f636b6683f791dd72b71036.zip |
Make single-argument constructors explicit
Diffstat (limited to 'src')
-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 |
4 files changed, 5 insertions, 4 deletions
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; |