Kaydet (Commit) 939d744c authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 77243437
......@@ -48,7 +48,6 @@
#include <rtl/ref.hxx>
#include <rtl/ustrbuf.hxx>
#include <rtl/ustring.hxx>
#include <rtl/instance.hxx>
#include <sal/log.hxx>
#include <sal/types.h>
#include <salhelper/thread.hxx>
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment