summaryrefslogtreecommitdiff
path: root/src/xmlparser.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-02-08 20:26:14 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2019-02-09 15:40:28 +0100
commit1ae51ff94d0f1f27a4e4cc657371578db13c3ca1 (patch)
treef383cb73afa171ac10ab91eafea9f11804042744 /src/xmlparser.h
parentfb958041310617c7aeef36a8dc9041e2a51fae6d (diff)
Make code compile again (fix bitrot dating back from 2013).
Diffstat (limited to 'src/xmlparser.h')
-rw-r--r--src/xmlparser.h33
1 files changed, 16 insertions, 17 deletions
diff --git a/src/xmlparser.h b/src/xmlparser.h
index 92e0529..6247497 100644
--- a/src/xmlparser.h
+++ b/src/xmlparser.h
@@ -3,7 +3,7 @@
/***************************************************************************
* xmlparser.h
*
- * Wed Mar 21 09:15:51 CET 2012
+ * Wed Mar 21 09:15:51 CET 2012
* Copyright 2012 Jonas Suhr Christensen
* jsc@umbraculum.org
****************************************************************************/
@@ -25,8 +25,7 @@
* along with Munia; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#ifndef __MUNIA_XMLPARSER_H__
-#define __MUNIA_XMLPARSER_H__
+#pragma once
#include "task.h"
#include "saxparser.h"
@@ -34,21 +33,21 @@
#include <stack>
#include "tasktree.h"
-class XmlParser : public SAXParser {
+class XmlParser
+ : public SAXParser
+{
public:
- XmlParser(TaskTree *tree);
- ~XmlParser();
-
- void startTag(std::string name, attributes_t &attr);
- void endTag(std::string name);
- void characterData(const std::string &data);
+ XmlParser(TaskTree *tree);
+ ~XmlParser();
+
+ void startTag(std::string name, attributes_t &attr);
+ void endTag(std::string name);
+ void characterData(const std::string &data);
private:
- std::stack<taskid_t> parents;
- std::string cdata;
- node_t *node;
- TaskTree *tree;
- std::string attr_name;
+ std::stack<taskid_t> parents;
+ std::string cdata;
+ node_t *node;
+ TaskTree *tree;
+ std::string attr_name;
};
-
-#endif/*__MUNIA_XMLPARSER_H__*/