summaryrefslogtreecommitdiff
path: root/src/xmlparser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmlparser.cc')
-rw-r--r--src/xmlparser.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/xmlparser.cc b/src/xmlparser.cc
index a087c62..e410f88 100644
--- a/src/xmlparser.cc
+++ b/src/xmlparser.cc
@@ -31,7 +31,7 @@
#include "xml_encode_decode.h"
-XmlParser::XmlParser(TaskTree *t) : tree(t)
+XmlParser::XmlParser(NodeTree *t) : tree(t)
{
}
@@ -46,16 +46,16 @@ void XmlParser::characterData(const std::string &data)
void XmlParser::startTag(std::string name, attributes_t &attr)
{
- if(name == "tasktree")
+ if(name == "nodetree")
{
tree->nextid = atoi(xml_decode(attr["nextid"]).c_str());
}
- if(name == "task")
+ if(name == "node")
{
- taskid_t id = atoi(xml_decode(attr["id"]).c_str());
+ nodeid_t id = atoi(xml_decode(attr["id"]).c_str());
- node_t* parent = NULL;
+ Node* parent = NULL;
if(parents.size() != 0)
{
parent = tree->id2node.at(parents.top());
@@ -80,7 +80,7 @@ void XmlParser::startTag(std::string name, attributes_t &attr)
void XmlParser::endTag(std::string name)
{
- if(name == "task")
+ if(name == "node")
{
}