From 1ae51ff94d0f1f27a4e4cc657371578db13c3ca1 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 8 Feb 2019 20:26:14 +0100 Subject: Make code compile again (fix bitrot dating back from 2013). --- src/xmlparser.h | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'src/xmlparser.h') 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 #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 parents; - std::string cdata; - node_t *node; - TaskTree *tree; - std::string attr_name; + std::stack parents; + std::string cdata; + node_t *node; + TaskTree *tree; + std::string attr_name; }; - -#endif/*__MUNIA_XMLPARSER_H__*/ -- cgit v1.2.3