summaryrefslogtreecommitdiffstats
path: root/src/server/ControlBindings.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-10-06 16:56:04 -0400
committerDavid Robillard <d@drobilla.net>2024-10-11 19:37:24 -0400
commit1ecbb458c9877cf18d0438449d8757fb713d46d2 (patch)
tree62696de1f35cef8188cc79abe1da3097d431f845 /src/server/ControlBindings.hpp
parent9009631bdf6d1142a13335ececbc1f78daf3fdf0 (diff)
downloadingen-1ecbb458c9877cf18d0438449d8757fb713d46d2.tar.gz
ingen-1ecbb458c9877cf18d0438449d8757fb713d46d2.tar.bz2
ingen-1ecbb458c9877cf18d0438449d8757fb713d46d2.zip
Make more single-argument constructors explicit
Diffstat (limited to 'src/server/ControlBindings.hpp')
-rw-r--r--src/server/ControlBindings.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/ControlBindings.hpp b/src/server/ControlBindings.hpp
index a4ed0f94..4c806265 100644
--- a/src/server/ControlBindings.hpp
+++ b/src/server/ControlBindings.hpp
@@ -60,9 +60,8 @@ public:
};
struct Key {
- Key(Type t = Type::NULL_CONTROL, int16_t n = 0) noexcept
- : type(t), num(n)
- {}
+ Key(Type t, int16_t n) noexcept : type{t}, num{n} {}
+ Key() noexcept : Key{Type::NULL_CONTROL, 0U} {}
bool operator<(const Key& other) const {
return ((type < other.type) ||
@@ -82,7 +81,8 @@ public:
/** One binding of a controller to a port. */
struct Binding : public boost::intrusive::set_base_hook<>,
public raul::Maid::Disposable {
- Binding(Key k=Key(), PortImpl* p=nullptr) : key(k), port(p) {}
+ Binding(Key k, PortImpl* p) noexcept : key{k}, port{p} {}
+ Binding() noexcept : Binding{Key{}, nullptr} {}
bool operator<(const Binding& rhs) const { return key < rhs.key; }