Skip to content
Snippets Groups Projects
Commit 2f8d0e66 authored by Fabian Reister's avatar Fabian Reister
Browse files

comment regarding raw pointer

parent afecb727
No related branches found
No related tags found
No related merge requests found
......@@ -601,6 +601,8 @@ public:
declaration->append_attribute("version", "1.0");
declaration->append_attribute("encoding", "utf-8");
doc->append_node(declaration->node);
// ownership of doc is transferred to RapidXMLWrapperRootNode rootNode
RapidXMLWrapperRootNodePtr rootNode = RapidXMLWrapperRootNodePtr(new RapidXMLWrapperRootNode(doc, name));
doc->append_node(rootNode->node);
return rootNode;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment