From 939d744cee18642fec24d33436b211c92b8b46f8 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 15 Jan 2019 19:05:35 +0100 Subject: Replace uses of rtl/instance.hxx with plain local static vars in configmgr Change-Id: Iebd72f1cfd2b3af54efaabba04a89d043eef28c8 Reviewed-on: https://gerrit.libreoffice.org/66405 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- configmgr/source/components.cxx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'configmgr/source') 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) { -- cgit