summaryrefslogtreecommitdiffstats
path: root/tools/source/xml/XmlWalker.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source/xml/XmlWalker.cxx')
-rw-r--r--tools/source/xml/XmlWalker.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/xml/XmlWalker.cxx b/tools/source/xml/XmlWalker.cxx
index ca5c2c96eb2b..736cd07edeba 100644
--- a/tools/source/xml/XmlWalker.cxx
+++ b/tools/source/xml/XmlWalker.cxx
@@ -93,7 +93,7 @@ OString XmlWalker::attribute(const OString& sName)
{
xmlChar* xmlName = xmlCharStrdup(sName.getStr());
xmlChar* xmlAttribute = xmlGetProp(mpImpl->mpCurrent, xmlName);
- OString aAttributeContent = OString(reinterpret_cast<const char*>(xmlAttribute));
+ OString aAttributeContent(reinterpret_cast<const char*>(xmlAttribute));
xmlFree(xmlAttribute);
xmlFree(xmlName);