From 98a89a73d7834e83f09f1619d16a58f3ecf2d850 Mon Sep 17 00:00:00 2001 From: Lars Bisballe Jensen Date: Tue, 21 Oct 2014 11:04:49 +0200 Subject: Added metadata strings to classes and began work on xml parser for drumkits --- src/instrumentparser.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/instrumentparser.cc') diff --git a/src/instrumentparser.cc b/src/instrumentparser.cc index 0889d74..8d097e9 100644 --- a/src/instrumentparser.cc +++ b/src/instrumentparser.cc @@ -52,8 +52,8 @@ void InstrumentParser::startTag(std::string name, std::map attr) { if(name == "instrument") { - if(attr.find("name") != attr.end()) - instrument._name = attr["name"]; + if(attr.find("id") != attr.end()) + instrument._id = attr["id"]; if(attr.find("description") != attr.end()) instrument._description = attr["description"]; -- cgit v1.2.3