From 9cb7fcc65b5bf1386e40277df9545f19a6fd5fe4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 4 Sep 2018 21:18:54 +0200 Subject: Remove pointless type qualifiers --- src/server/Buffer.cpp | 2 +- src/server/ControlBindings.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/server/Buffer.cpp b/src/server/Buffer.cpp index 1952beb2..34867fa3 100644 --- a/src/server/Buffer.cpp +++ b/src/server/Buffer.cpp @@ -223,7 +223,7 @@ float Buffer::peak(const RunContext& context) const { #ifdef __SSE__ - const __m128* const vbuf = (const __m128* const)samples(); + const __m128* const vbuf = (const __m128*)samples(); __m128 vpeak = mm_abs_ps(vbuf[0]); const SampleCount nblocks = context.nframes() / 4; 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(buf[2]); - return Key(Type::MIDI_CC, static_cast(buf[1])); + value = static_cast(buf[2]); + return Key(Type::MIDI_CC, static_cast(buf[1])); case LV2_MIDI_MSG_BENDER: value = (static_cast(buf[2]) << 7) + static_cast(buf[1]); return Key(Type::MIDI_BENDER); case LV2_MIDI_MSG_CHANNEL_PRESSURE: - value = static_cast(buf[1]); + value = static_cast(buf[1]); return Key(Type::MIDI_CHANNEL_PRESSURE); case LV2_MIDI_MSG_NOTE_ON: value = 1.0f; - return Key(Type::MIDI_NOTE, static_cast(buf[1])); + return Key(Type::MIDI_NOTE, static_cast(buf[1])); default: return Key(); } -- cgit v1.2.1