diff --git a/vcl/vclplug_win.component b/vcl/vclplug_win.component index d6dc9f24e93f..0187827d54a4 100644 --- a/vcl/vclplug_win.component +++ b/vcl/vclplug_win.component @@ -20,7 +20,7 @@ + constructor="dtrans_CDataFormatTranslatorUNO_get_implementation" single-instance="true"> #include #include -#include +#include #include "ImplHelper.hxx" #include @@ -540,8 +540,6 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* dtrans_CDataFormatTranslatorUNO_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence const&) { - static rtl::Reference g_Instance(new CDataFormatTranslatorUNO(context)); - g_Instance->acquire(); - return static_cast(g_Instance.get()); + return cppu::acquire(static_cast(new CDataFormatTranslatorUNO(context))); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */