summaryrefslogtreecommitdiffstats
path: root/src/XMLDocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/XMLDocument.cpp')
-rw-r--r--src/XMLDocument.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/XMLDocument.cpp b/src/XMLDocument.cpp
index da843b4..716ed9e 100644
--- a/src/XMLDocument.cpp
+++ b/src/XMLDocument.cpp
@@ -89,10 +89,9 @@ XMLDocument* XMLDocument::createDocument(string sRootName)
}
//-----------------------------------------------------------------------------
-XMLNode* XMLDocument::getRootNode()
+XMLNode XMLDocument::getRootNode()
{
- // TODO: clean up: this 'new' requires callers to do memory management
- return new XMLNode(fDOMDocument->first_node());
+ return XMLNode(fDOMDocument->first_node());
}
//-----------------------------------------------------------------------------