diff options
Diffstat (limited to 'svx/source/xml')
-rw-r--r-- | svx/source/xml/xmlgrhlp.cxx | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx index b95d38fdb0f6..f9bad053927c 100644 --- a/svx/source/xml/xmlgrhlp.cxx +++ b/svx/source/xml/xmlgrhlp.cxx @@ -19,7 +19,6 @@ #include <comphelper/string.hxx> #include <sal/macros.h> -#include <rtl/strbuf.hxx> #include <com/sun/star/embed/XTransactedObject.hpp> #include <com/sun/star/embed/ElementModes.hpp> #include <com/sun/star/beans/XPropertySet.hpp> @@ -29,6 +28,7 @@ #include <cppuhelper/compbase4.hxx> #include <cppuhelper/supportsservice.hxx> +#include <rtl/ref.hxx> #include <unotools/ucbstreamhelper.hxx> #include <unotools/streamwrap.hxx> #include <unotools/tempfile.hxx> @@ -1052,14 +1052,13 @@ Sequence< OUString > SAL_CALL SvXMLGraphicImportExportHelper::getSupportedServic */ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL com_sun_star_comp_Svx_GraphicImportHelper_get_implementation( - SAL_UNUSED_PARAMETER css::uno::XComponentContext *, + css::uno::XComponentContext *, css::uno::Sequence<css::uno::Any> const &) { - css::uno::Reference<css::uno::XInterface> x( - static_cast<cppu::OWeakObject *>(new SvXMLGraphicImportExportHelper( - GRAPHICHELPER_MODE_READ))); + rtl::Reference<SvXMLGraphicImportExportHelper> x( + new SvXMLGraphicImportExportHelper(GRAPHICHELPER_MODE_READ)); x->acquire(); - return x.get(); + return static_cast<cppu::OWeakObject *>(x.get()); } /** Create this with createInstanceWithArguments. service name @@ -1076,14 +1075,13 @@ com_sun_star_comp_Svx_GraphicImportHelper_get_implementation( */ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL com_sun_star_comp_Svx_GraphicExportHelper_get_implementation( - SAL_UNUSED_PARAMETER css::uno::XComponentContext *, + css::uno::XComponentContext *, css::uno::Sequence<css::uno::Any> const &) { - css::uno::Reference<css::uno::XInterface> x( - static_cast<cppu::OWeakObject *>(new SvXMLGraphicImportExportHelper( - GRAPHICHELPER_MODE_WRITE ))); + rtl::Reference<SvXMLGraphicImportExportHelper> x( + new SvXMLGraphicImportExportHelper(GRAPHICHELPER_MODE_WRITE)); x->acquire(); - return x.get(); + return static_cast<cppu::OWeakObject *>(x.get()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |