summaryrefslogtreecommitdiff
path: root/xmlscript/source/xmllib_imexp/xmllib_export.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlscript/source/xmllib_imexp/xmllib_export.cxx')
-rw-r--r--xmlscript/source/xmllib_imexp/xmllib_export.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/xmlscript/source/xmllib_imexp/xmllib_export.cxx b/xmlscript/source/xmllib_imexp/xmllib_export.cxx
index 33e531ac14c5..00f8045a0b0c 100644
--- a/xmlscript/source/xmllib_imexp/xmllib_export.cxx
+++ b/xmlscript/source/xmllib_imexp/xmllib_export.cxx
@@ -45,14 +45,13 @@ exportLibraryContainer(
xOut->ignorableWhitespace( OUString() );
OUString aLibrariesName( XMLNS_LIBRARY_PREFIX ":libraries" );
- XMLElement* pLibsElement = new XMLElement( aLibrariesName );
- Reference< xml::sax::XAttributeList > xAttributes( pLibsElement );
+ rtl::Reference<XMLElement> pLibsElement = new XMLElement( aLibrariesName );
pLibsElement->addAttribute( "xmlns:" XMLNS_LIBRARY_PREFIX, XMLNS_LIBRARY_URI );
pLibsElement->addAttribute( "xmlns:" XMLNS_XLINK_PREFIX, XMLNS_XLINK_URI );
xOut->ignorableWhitespace( OUString() );
- xOut->startElement( aLibrariesName, xAttributes );
+ xOut->startElement( aLibrariesName, pLibsElement );
OUString sTrueStr(aTrueStr);
OUString sFalseStr(aFalseStr);