aboutsummaryrefslogtreecommitdiff
path: root/core/qmpmidimapperrtmidi.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2017-01-15 22:08:35 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2017-01-15 22:08:35 +0800
commit8a0d671e1a77c58142d0cbe82f40ee64bcae2be5 (patch)
treecb7ce958d02f2bb9e00581a56c28120800521a93 /core/qmpmidimapperrtmidi.cpp
parentb7842ae90b28618affdad6977c9c814aa573a3fe (diff)
downloadQMidiPlayer-8a0d671e1a77c58142d0cbe82f40ee64bcae2be5.tar.xz
A little code refactoring.
Diffstat (limited to 'core/qmpmidimapperrtmidi.cpp')
-rw-r--r--core/qmpmidimapperrtmidi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/qmpmidimapperrtmidi.cpp b/core/qmpmidimapperrtmidi.cpp
index 9515a0b..2d4fc26 100644
--- a/core/qmpmidimapperrtmidi.cpp
+++ b/core/qmpmidimapperrtmidi.cpp
@@ -30,7 +30,7 @@ int qmpMidiMapperRtMidi::deviceInit(int id)
ports[i]=new RtMidiOut();
ports[i]->openPort(id);
}
- catch(RtMidiError e)
+ catch(RtMidiError &e)
{
printf("Device initialization failure: %s\n",e.what());
ports[i]=NULL;