diff options
Diffstat (limited to 'xmlscript/source/xml_helper/xml_impctx.cxx')
-rw-r--r-- | xmlscript/source/xml_helper/xml_impctx.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmlscript/source/xml_helper/xml_impctx.cxx b/xmlscript/source/xml_helper/xml_impctx.cxx index 1520235c26c6..c0e9d2900b77 100644 --- a/xmlscript/source/xml_helper/xml_impctx.cxx +++ b/xmlscript/source/xml_helper/xml_impctx.cxx @@ -711,8 +711,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* com_sun_star_comp_xml_input_SaxDocumentHandler_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const& ) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new xmlscript::DocumentHandlerImpl( - Reference< xml::input::XRoot >(), false /* mt use */ ))); + return cppu::acquire(new xmlscript::DocumentHandlerImpl({}, false /* mt use */)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |