summaryrefslogtreecommitdiff
path: root/src/midimapparser.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-03-23 21:57:41 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-03-31 21:03:08 +0200
commit45521d593560b120d406acfb9926697e7ad5e423 (patch)
tree4d25de9d5aa29a029ac46e3bc6551a32491f8ea8 /src/midimapparser.cc
parentd172d756cfcdfbde5c6b8c6d25a51f58624739e6 (diff)
More cleanup.
Diffstat (limited to 'src/midimapparser.cc')
-rw-r--r--src/midimapparser.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/midimapparser.cc b/src/midimapparser.cc
index ec4c10d..cc97280 100644
--- a/src/midimapparser.cc
+++ b/src/midimapparser.cc
@@ -30,7 +30,8 @@ void MidiMapParser::startTag(const std::string& name, const attr_t& attr)
{
if(name == "map")
{
- if(attr.find("note") != attr.end() && attr.find("instr") != attr.end())
+ if((attr.find("note") != attr.end()) &&
+ (attr.find("instr") != attr.end()))
{
midimap[std::stoi(attr.at("note"))] = attr.at("instr");
}