diff options
author | David Robillard <d@drobilla.net> | 2018-09-04 21:18:54 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-04 21:18:54 +0200 |
commit | 9cb7fcc65b5bf1386e40277df9545f19a6fd5fe4 (patch) | |
tree | 6c7a665850b99272b508da8b7d7af371e3347f39 /src/server/ControlBindings.cpp | |
parent | 29cdf0d367f9965210b09f674f99e4dd4b3a7356 (diff) | |
download | ingen-9cb7fcc65b5bf1386e40277df9545f19a6fd5fe4.tar.gz ingen-9cb7fcc65b5bf1386e40277df9545f19a6fd5fe4.tar.bz2 ingen-9cb7fcc65b5bf1386e40277df9545f19a6fd5fe4.zip |
Remove pointless type qualifiers
Diffstat (limited to 'src/server/ControlBindings.cpp')
-rw-r--r-- | src/server/ControlBindings.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/ControlBindings.cpp b/src/server/ControlBindings.cpp index 8d4d6974..3901d1c2 100644 --- a/src/server/ControlBindings.cpp +++ b/src/server/ControlBindings.cpp @@ -106,17 +106,17 @@ ControlBindings::midi_event_key(uint16_t size, const uint8_t* buf, uint16_t& val { switch (lv2_midi_message_type(buf)) { case LV2_MIDI_MSG_CONTROLLER: - value = static_cast<const int8_t>(buf[2]); - return Key(Type::MIDI_CC, static_cast<const int8_t>(buf[1])); + value = static_cast<int8_t>(buf[2]); + return Key(Type::MIDI_CC, static_cast<int8_t>(buf[1])); case LV2_MIDI_MSG_BENDER: value = (static_cast<int8_t>(buf[2]) << 7) + static_cast<int8_t>(buf[1]); return Key(Type::MIDI_BENDER); case LV2_MIDI_MSG_CHANNEL_PRESSURE: - value = static_cast<const int8_t>(buf[1]); + value = static_cast<int8_t>(buf[1]); return Key(Type::MIDI_CHANNEL_PRESSURE); case LV2_MIDI_MSG_NOTE_ON: value = 1.0f; - return Key(Type::MIDI_NOTE, static_cast<const int8_t>(buf[1])); + return Key(Type::MIDI_NOTE, static_cast<int8_t>(buf[1])); default: return Key(); } |