@@ -1341,7 +1341,7 @@ MidiInterface<Transport, Settings, Platform>& MidiInterface<Transport, Settings,
13411341
13421342// Private - launch callback function based on received type.
13431343template <class Transport , class Settings , class Platform >
1344- MidiInterface<Transport, Settings, Platform>& MidiInterface<Transport, Settings, Platform>::launchCallback()
1344+ void MidiInterface<Transport, Settings, Platform>::launchCallback()
13451345{
13461346 if (mMessageCallback != 0 ) mMessageCallback (mMessage );
13471347
@@ -1449,11 +1449,11 @@ inline MidiInterface<Transport, Settings, Platform>& MidiInterface<Transport, Se
14491449// - Channel messages are passed to the output whether their channel
14501450// is matching the input channel and the filter setting
14511451template <class Transport , class Settings , class Platform >
1452- MidiInterface<Transport, Settings, Platform>& MidiInterface<Transport, Settings, Platform>::thruFilter(Channel inChannel)
1452+ void MidiInterface<Transport, Settings, Platform>::thruFilter(Channel inChannel)
14531453{
14541454 // If the feature is disabled, don't do anything.
14551455 if (!mThruActivated || (mThruFilterMode == Thru::Off))
1456- return * this ;
1456+ return ;
14571457
14581458 // First, check if the received message is Channel
14591459 if (mMessage .type >= NoteOff && mMessage .type <= PitchBend)
@@ -1532,8 +1532,6 @@ MidiInterface<Transport, Settings, Platform>& MidiInterface<Transport, Settings,
15321532 break ; // LCOV_EXCL_LINE - Unreacheable code, but prevents unhandled case warning.
15331533 }
15341534 }
1535-
1536- return *this ;
15371535}
15381536
15391537END_MIDI_NAMESPACE
0 commit comments