diff options
Diffstat (limited to 'xmlscript/source/xmllib_imexp/xmllib_export.cxx')
-rw-r--r-- | xmlscript/source/xmllib_imexp/xmllib_export.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlscript/source/xmllib_imexp/xmllib_export.cxx b/xmlscript/source/xmllib_imexp/xmllib_export.cxx index 5f553ddba2b4..bb92579f4f5f 100644 --- a/xmlscript/source/xmllib_imexp/xmllib_export.cxx +++ b/xmlscript/source/xmllib_imexp/xmllib_export.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <rtl/ref.hxx> #include <xmlscript/xmllib_imexp.hxx> #include <xmlscript/xml_helper.hxx> @@ -99,8 +100,7 @@ SAL_CALL exportLibrary( " \"library.dtd\">" ); xOut->ignorableWhitespace( OUString() ); - XMLElement* pLibElement = new XMLElement( XMLNS_LIBRARY_PREFIX ":library" ); - Reference< xml::sax::XAttributeList > xAttributes( pLibElement ); + rtl::Reference<XMLElement> pLibElement = new XMLElement( XMLNS_LIBRARY_PREFIX ":library" ); pLibElement->addAttribute( "xmlns:" XMLNS_LIBRARY_PREFIX, XMLNS_LIBRARY_URI ); |