diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx index e584a3c98589..9587fde1e7a5 100644 --- a/configmgr/source/components.cxx +++ b/configmgr/source/components.cxx @@ -48,7 +48,6 @@ #include #include #include -#include #include #include #include @@ -196,19 +195,12 @@ void Components::WriteThread::execute() { reference_->clear(); } -class theComponentsSingleton : - public rtl::StaticWithArg< - Components, - css::uno::Reference< css::uno::XComponentContext >, - theComponentsSingleton> -{ -}; - Components & Components::getSingleton( css::uno::Reference< css::uno::XComponentContext > const & context) { assert(context.is()); - return theComponentsSingleton::get(context); + static Components singleton(context); + return singleton; } bool Components::allLocales(OUString const & locale) {