summaryrefslogtreecommitdiff
path: root/src/drumgizmo.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2016-03-23 18:24:29 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2016-03-23 18:24:29 +0100
commit5c04b951ffe53e1a31182bb0814908af8d7f0a6f (patch)
tree5499759253aaa92abfa853aa55fede9e9029f140 /src/drumgizmo.cc
parente8fcde7654f2d7dce494ebe1ca27abbebc3908b4 (diff)
Do the file related actions in SAXParser.
Diffstat (limited to 'src/drumgizmo.cc')
-rw-r--r--src/drumgizmo.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc
index 6906fb1..2599f9f 100644
--- a/src/drumgizmo.cc
+++ b/src/drumgizmo.cc
@@ -81,8 +81,8 @@ bool DrumGizmo::loadkit(std::string file)
// Delete all Channels, Instruments, Samples and AudioFiles.
kit.clear();
- DrumKitParser parser(file, kit);
- if(parser.parse())
+ DrumKitParser parser(kit);
+ if(parser.parseFile(file))
{
ERR(drumgizmo, "Drumkit parser failed: %s\n", file.c_str());
return false;
@@ -709,7 +709,7 @@ bool DrumGizmo::setConfigString(std::string cfg)
std::string dkf;
ConfigParser p;
- if(p.parse(cfg))
+ if(p.parseString(cfg))
{
ERR(drumgizmo, "Config parse error.\n");
return false;