Jelajahi Sumber

Fixed typo with firstErrorOccurred_ variable.

Gary Scavone 10 tahun lalu
induk
melakukan
1690808587
1 mengubah file dengan 3 tambahan dan 10 penghapusan
  1. 3 10
      RtMidi.cpp

+ 3 - 10
RtMidi.cpp

@@ -242,14 +242,14 @@ void MidiApi :: error( RtMidiError::Type type, std::string errorString )
 {
   if ( errorCallback_ ) {
 
-    if ( firstErrorOccured_ )
+    if ( firstErrorOccurred_ )
       return;
 
-    firstErrorOccured_ = true;
+    firstErrorOccurred_ = true;
     const std::string errorMessage = errorString;
 
     errorCallback_( type, errorMessage, errorCallbackUserData_);
-    firstErrorOccured_ = false;
+    firstErrorOccurred_ = false;
     return;
   }
 
@@ -988,13 +988,6 @@ void MidiOutCore :: openVirtualPort( std::string portName )
   data->endpoint = endpoint;
 }
 
-// Not necessary if we don't treat sysex messages any differently than
-// normal messages ... see below.
-static void sysexCompletionProc( MIDISysexSendRequest *sreq )
-{
-  free( sreq );
-}
-
 void MidiOutCore :: sendMessage( std::vector<unsigned char> *message )
 {
   // We use the MIDISendSysex() function to asynchronously send sysex