summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvisvgm/dvisvgm-src/src/XMLDocument.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/src/XMLDocument.hpp')
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-src/src/XMLDocument.hpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/src/XMLDocument.hpp b/Build/source/texk/dvisvgm/dvisvgm-src/src/XMLDocument.hpp
index d8590b8b35f..90e1cd23cfb 100644
--- a/Build/source/texk/dvisvgm/dvisvgm-src/src/XMLDocument.hpp
+++ b/Build/source/texk/dvisvgm/dvisvgm-src/src/XMLDocument.hpp
@@ -2,7 +2,7 @@
** XMLDocument.hpp **
** **
** This file is part of dvisvgm -- a fast DVI to SVG converter **
-** Copyright (C) 2005-2017 Martin Gieseking <martin.gieseking@uos.de> **
+** Copyright (C) 2005-2018 Martin Gieseking <martin.gieseking@uos.de> **
** **
** This program is free software; you can redistribute it and/or **
** modify it under the terms of the GNU General Public License as **
@@ -24,13 +24,14 @@
#include <memory>
#include "XMLNode.hpp"
-class XMLDocument
-{
+class XMLDocument {
public:
- XMLDocument (XMLElementNode *root=0);
+ XMLDocument () =default;
+ XMLDocument (std::unique_ptr<XMLElementNode> &&root);
void clear ();
- void append (XMLNode *node);
- void setRootNode (XMLElementNode *root);
+ void append (std::unique_ptr<XMLElementNode> &&node);
+ void append (std::unique_ptr<XMLNode> &&node);
+ void setRootNode (std::unique_ptr<XMLElementNode> &&root);
const XMLElementNode* getRootElement () const {return _rootElement.get();}
std::ostream& write (std::ostream &os) const;