From 3fefd2b889334b11f785e764543ff9f077bb0081 Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 22 Aug 2018 13:23:23 +0200 Subject: [PATCH] Silence an error regarding rtmidi dummy --- source/modules/rtmidi/RtMidi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/modules/rtmidi/RtMidi.h b/source/modules/rtmidi/RtMidi.h index 0ace4c3fb..51109ae14 100644 --- a/source/modules/rtmidi/RtMidi.h +++ b/source/modules/rtmidi/RtMidi.h @@ -762,7 +762,7 @@ class MidiOutWinMM: public MidiOutApi class MidiInDummy: public MidiInApi { public: - MidiInDummy( const std::string &/*clientName*/, unsigned int queueSizeLimit ) : MidiInApi( queueSizeLimit ) { errorString_ = "MidiInDummy: This class provides no functionality."; error( RtMidiError::WARNING, errorString_ ); } + MidiInDummy( const std::string &/*clientName*/, unsigned int queueSizeLimit ) : MidiInApi( queueSizeLimit ) {} RtMidi::Api getCurrentApi( void ) { return RtMidi::RTMIDI_DUMMY; } void openPort( unsigned int /*portNumber*/, const std::string &/*portName*/ ) {} void openVirtualPort( const std::string &/*portName*/ ) {} @@ -777,7 +777,7 @@ class MidiInDummy: public MidiInApi class MidiOutDummy: public MidiOutApi { public: - MidiOutDummy( const std::string &/*clientName*/ ) { errorString_ = "MidiOutDummy: This class provides no functionality."; error( RtMidiError::WARNING, errorString_ ); } + MidiOutDummy( const std::string &/*clientName*/ ) {} RtMidi::Api getCurrentApi( void ) { return RtMidi::RTMIDI_DUMMY; } void openPort( unsigned int /*portNumber*/, const std::string &/*portName*/ ) {} void openVirtualPort( const std::string &/*portName*/ ) {}