diff options
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/splash/spl.component | 2 | ||||
-rw-r--r-- | desktop/source/splash/unxsplash.cxx | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/desktop/source/splash/spl.component b/desktop/source/splash/spl.component index 204dbffa8b89..a15cbdf54492 100644 --- a/desktop/source/splash/spl.component +++ b/desktop/source/splash/spl.component @@ -24,7 +24,7 @@ <service name="com.sun.star.office.SplashScreen"/> </implementation> <implementation name="com.sun.star.office.comp.PipeSplashScreen" - constructor="desktop_UnxSplash_get_implementation"> + constructor="desktop_UnxSplash_get_implementation" single-instance="true"> <service name="com.sun.star.office.PipeSplashScreen"/> </implementation> </component> diff --git a/desktop/source/splash/unxsplash.cxx b/desktop/source/splash/unxsplash.cxx index efee99e46023..2cf813ac2165 100644 --- a/desktop/source/splash/unxsplash.cxx +++ b/desktop/source/splash/unxsplash.cxx @@ -122,10 +122,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* desktop_UnxSplash_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - static rtl::Reference< desktop::UnxSplashScreen > m_xINSTANCE(new desktop::UnxSplashScreen()); - - m_xINSTANCE->acquire(); - return static_cast<cppu::OWeakObject*>(m_xINSTANCE.get()); + return cppu::acquire(static_cast<cppu::OWeakObject*>(new desktop::UnxSplashScreen())); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |