Skip to content

Commit

Permalink
Fix RtMidiIn/RtMidiOut constructor signatures wrt std::string&.
Browse files Browse the repository at this point in the history
Remove nullptr since we haven't moved to C++11 yet.
  • Loading branch information
radarsat1 committed Aug 31, 2017
1 parent de22ecf commit b0cacfd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RtMidi.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class RtMidiIn : public RtMidi
\param queueSizeLimit An optional size of the MIDI input queue can be specified.
*/
RtMidiIn( RtMidi::Api api=UNSPECIFIED,
const std::string clientName = std::string( "RtMidi Input Client"),
const std::string& clientName = "RtMidi Input Client",
unsigned int queueSizeLimit = 100 );

//! If a MIDI connection is still open, it will be closed by the destructor.
Expand Down Expand Up @@ -359,7 +359,7 @@ class RtMidiOut : public RtMidi
JACK (OS-X).
*/
RtMidiOut( RtMidi::Api api=UNSPECIFIED,
const std::string clientName = std::string( "RtMidi Output Client") );
const std::string& clientName = "RtMidi Output Client" );

//! The destructor closes any open MIDI connections.
~RtMidiOut( void ) throw();
Expand Down Expand Up @@ -510,7 +510,7 @@ class MidiInApi : public MidiApi

// Default constructor.
MidiQueue()
:front(0), back(0), size(0), ringSize(0), ring(nullptr) {}
:front(0), back(0), size(0), ringSize(0), ring(0) {}
bool push(const MidiMessage&);
bool pop(std::vector<unsigned char>*, double*);
};
Expand Down

0 comments on commit b0cacfd

Please sign in to comment.