summaryrefslogtreecommitdiff
path: root/src/drumkitparser.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-03-23 22:38:44 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-03-23 22:38:44 +0100
commit569636bbd766710f5ac60a66c402acc70cdf77a8 (patch)
tree95712842bb1550c879796ce8444eaecf0e3741e9 /src/drumkitparser.cc
parent571e5a5feab478f6481db96343dfaf566bd2ab6d (diff)
Settings.
Diffstat (limited to 'src/drumkitparser.cc')
-rw-r--r--src/drumkitparser.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/drumkitparser.cc b/src/drumkitparser.cc
index f6dd553..f7737a0 100644
--- a/src/drumkitparser.cc
+++ b/src/drumkitparser.cc
@@ -34,9 +34,10 @@
#include "path.h"
#include "drumgizmo.h"
-DrumKitParser::DrumKitParser(DrumKit& kit)
- : kit(kit)
+DrumKitParser::DrumKitParser(Settings& setting, DrumKit& k)
+ : kit(k)
, refs(REFSFILE)
+ , settings(settings)
{
}
@@ -182,7 +183,7 @@ void DrumKitParser::endTag(const std::string& name)
{
if(name == "instrument")
{
- Instrument* instrument = new Instrument();
+ Instrument* instrument = new Instrument(settings);
instrument->setGroup(instr_group);
InstrumentParser parser(*instrument);