diff options
author | Christian Glöckner <cgloeckner@freenet.de> | 2016-03-29 16:53:03 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2016-03-31 17:44:25 +0200 |
commit | b58bd2842d411c60c574e8ac72be520f48a8cd92 (patch) | |
tree | 39c1d56a8f7342cea8e5d876bfb9a5e8ed0decc3 /src/midimapper.cc | |
parent | b663b60b70a3a7a6678e4cc2cc29d5394e2e6539 (diff) |
Reformatted MidiMapper
Diffstat (limited to 'src/midimapper.cc')
-rw-r--r-- | src/midimapper.cc | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/midimapper.cc b/src/midimapper.cc index 8df5901..05f69e5 100644 --- a/src/midimapper.cc +++ b/src/midimapper.cc @@ -28,14 +28,20 @@ int MidiMapper::lookup(int note) { - if(midimap.find(note) == midimap.end()) return -1; - std::string instr = midimap[note]; - if(instrmap.find(instr) == instrmap.end()) return -1; - return instrmap[instr]; + if(midimap.find(note) == midimap.end()) + { + return -1; + } + std::string instr = midimap[note]; + if(instrmap.find(instr) == instrmap.end()) + { + return -1; + } + return instrmap[instr]; } void MidiMapper::clear() { - midimap.clear(); - instrmap.clear(); + midimap.clear(); + instrmap.clear(); } |