summaryrefslogtreecommitdiff
path: root/unoxml/source/dom/saxbuilder.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unoxml/source/dom/saxbuilder.cxx')
-rw-r--r--unoxml/source/dom/saxbuilder.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/unoxml/source/dom/saxbuilder.cxx b/unoxml/source/dom/saxbuilder.cxx
index 47371312994c..be04b5fae7db 100644
--- a/unoxml/source/dom/saxbuilder.cxx
+++ b/unoxml/source/dom/saxbuilder.cxx
@@ -256,9 +256,7 @@ namespace DOM
// no URI for prefix
aElement = m_aDocument->createElement(aName);
}
- aElement = Reference< XElement > (
- m_aNodeStack.top()->appendChild(aElement),
- UNO_QUERY);
+ aElement.set( m_aNodeStack.top()->appendChild(aElement), UNO_QUERY);
m_aNodeStack.push(aElement);
// set non xmlns attributes