From 802a8b7e4896a12d8eced17b6ee54c7bca02a629 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 30 Mar 2012 12:30:32 +0200 Subject: Make task_proto use new design. --- src/xmlparser.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xmlparser.cc') diff --git a/src/xmlparser.cc b/src/xmlparser.cc index 7bc7e0a..97a8bdb 100644 --- a/src/xmlparser.cc +++ b/src/xmlparser.cc @@ -75,7 +75,7 @@ void XmlParser::startTag(std::string name, attributes_t &attr) { task = new task_t(); task->id = atoi(xml_decode(attr["id"]).c_str()); - task->parent_id = atoi(xml_decode(attr["parent_id"]).c_str()); + // task->parent_id = atoi(xml_decode(attr["parent_id"]).c_str()); } } @@ -83,7 +83,7 @@ void XmlParser::startTag(std::string name, attributes_t &attr) { void XmlParser::endTag(std::string name) { // printf("end: %s\n", name.c_str()); if (name == "task") { - if(task) tasklist.insert(*task); + // if(task) tasklist.push_back(*task); } else if (name == "title") { if(task) task->title = characterbuf; -- cgit v1.2.3