diff options
author | David Robillard <d@drobilla.net> | 2020-08-01 18:59:18 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-02 01:48:48 +0200 |
commit | 7b70b455e6199b508217b021d9a0dfc08f9a7794 (patch) | |
tree | cb005e7cd9414cc3eb4b7c1baa52de69664dcd02 /src/server/internals/Note.hpp | |
parent | 848bb52824657c20b1d758aebcecefb5d8c37fb9 (diff) | |
download | ingen-7b70b455e6199b508217b021d9a0dfc08f9a7794.tar.gz ingen-7b70b455e6199b508217b021d9a0dfc08f9a7794.tar.bz2 ingen-7b70b455e6199b508217b021d9a0dfc08f9a7794.zip |
Use default member initialization
Diffstat (limited to 'src/server/internals/Note.hpp')
-rw-r--r-- | src/server/internals/Note.hpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/server/internals/Note.hpp b/src/server/internals/Note.hpp index c986a745..0a7d80c9 100644 --- a/src/server/internals/Note.hpp +++ b/src/server/internals/Note.hpp @@ -69,19 +69,19 @@ private: /** Key, one for each key on the keyboard */ struct Key { enum class State { OFF, ON_ASSIGNED, ON_UNASSIGNED }; - Key() : state(State::OFF), voice(0), time(0) {} - State state; - uint32_t voice; - SampleCount time; + + State state = State::OFF; + uint32_t voice = 0; + SampleCount time = 0; }; /** Voice, one of these always exists for each voice */ struct Voice { enum class State { FREE, ACTIVE, HOLDING }; - Voice() : state(State::FREE), note(0), time(0) {} - State state; - uint8_t note; - SampleCount time; + + State state = State::FREE; + uint8_t note = 0; + SampleCount time = 0; }; using Voices = Raul::Array<Voice>; |