diff options
author | David Robillard <d@drobilla.net> | 2022-08-18 01:20:27 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-18 01:20:27 -0400 |
commit | 44381dbda9dbf8d20894789fe8e3ea941b70a1d0 (patch) | |
tree | 27c4da20f5a796825f7485aa7a1f447ff423f0f6 /src/server/internals | |
parent | 9126ed67acf17bb2009430cb6de25b2ffd783d8e (diff) | |
download | ingen-44381dbda9dbf8d20894789fe8e3ea941b70a1d0.tar.gz ingen-44381dbda9dbf8d20894789fe8e3ea941b70a1d0.tar.bz2 ingen-44381dbda9dbf8d20894789fe8e3ea941b70a1d0.zip |
Use default member initialization
Diffstat (limited to 'src/server/internals')
-rw-r--r-- | src/server/internals/Controller.cpp | 1 | ||||
-rw-r--r-- | src/server/internals/Controller.hpp | 2 | ||||
-rw-r--r-- | src/server/internals/Note.cpp | 1 | ||||
-rw-r--r-- | src/server/internals/Note.hpp | 2 | ||||
-rw-r--r-- | src/server/internals/Trigger.cpp | 1 | ||||
-rw-r--r-- | src/server/internals/Trigger.hpp | 2 |
6 files changed, 3 insertions, 6 deletions
diff --git a/src/server/internals/Controller.cpp b/src/server/internals/Controller.cpp index d0d8cd39..d8445a8a 100644 --- a/src/server/internals/Controller.cpp +++ b/src/server/internals/Controller.cpp @@ -60,7 +60,6 @@ ControllerNode::ControllerNode(InternalPlugin* plugin, GraphImpl* parent, SampleRate srate) : InternalBlock(plugin, symbol, false, parent, srate) - , _learning(false) { const ingen::URIs& uris = bufs.uris(); _ports = bufs.maid().make_managed<Ports>(7); diff --git a/src/server/internals/Controller.hpp b/src/server/internals/Controller.hpp index b5cea110..2a0bc834 100644 --- a/src/server/internals/Controller.hpp +++ b/src/server/internals/Controller.hpp @@ -74,7 +74,7 @@ private: InputPort* _min_port; InputPort* _max_port; OutputPort* _audio_port; - bool _learning; + bool _learning{false}; }; } // namespace internals diff --git a/src/server/internals/Note.cpp b/src/server/internals/Note.cpp index 4952310b..e67cd441 100644 --- a/src/server/internals/Note.cpp +++ b/src/server/internals/Note.cpp @@ -64,7 +64,6 @@ NoteNode::NoteNode(InternalPlugin* plugin, SampleRate srate) : InternalBlock(plugin, symbol, polyphonic, parent, srate) , _voices(bufs.maid().make_managed<Voices>(_polyphony)) - , _sustain(false) { const ingen::URIs& uris = bufs.uris(); _ports = bufs.maid().make_managed<Ports>(8); diff --git a/src/server/internals/Note.hpp b/src/server/internals/Note.hpp index 80816131..082a852c 100644 --- a/src/server/internals/Note.hpp +++ b/src/server/internals/Note.hpp @@ -105,7 +105,7 @@ private: raul::managed_ptr<Voices> _prepared_voices; Key _keys[128]; - bool _sustain; ///< Whether or not hold pedal is depressed + bool _sustain{false}; ///< Whether or not hold pedal is depressed InputPort* _midi_in_port; OutputPort* _freq_port; diff --git a/src/server/internals/Trigger.cpp b/src/server/internals/Trigger.cpp index 645ffabb..19e320c9 100644 --- a/src/server/internals/Trigger.cpp +++ b/src/server/internals/Trigger.cpp @@ -60,7 +60,6 @@ TriggerNode::TriggerNode(InternalPlugin* plugin, GraphImpl* parent, SampleRate srate) : InternalBlock(plugin, symbol, false, parent, srate) - , _learning(false) { const ingen::URIs& uris = bufs.uris(); _ports = bufs.maid().make_managed<Ports>(6); diff --git a/src/server/internals/Trigger.hpp b/src/server/internals/Trigger.hpp index d9553c3e..74634202 100644 --- a/src/server/internals/Trigger.hpp +++ b/src/server/internals/Trigger.hpp @@ -71,7 +71,7 @@ public: static InternalPlugin* internal_plugin(URIs& uris); private: - bool _learning; + bool _learning{false}; InputPort* _midi_in_port; OutputPort* _midi_out_port; |