From b58bd2842d411c60c574e8ac72be520f48a8cd92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gl=C3=B6ckner?= Date: Tue, 29 Mar 2016 16:53:03 +0200 Subject: Reformatted MidiMapper --- src/midimapper.cc | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/midimapper.cc') 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(); } -- cgit v1.2.3