summaryrefslogtreecommitdiff
path: root/configmgr/source/readonlyaccess.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2019-12-23 22:09:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-12-24 16:05:43 +0100
commit122598af564082786f01b4eafdb9f09f0cffdf5f (patch)
tree148d44bc9f41e58c8cc01e83377786151b2ab44b /configmgr/source/readonlyaccess.cxx
parent04ac09d4726767cadaf418f6349b7003693827b4 (diff)
no need to use shared_ptr here
when we are really just sharing a single global lock object Change-Id: I30d6f4cbd30cb7ee849f20a6c15615a94f67d7d8 Reviewed-on: https://gerrit.libreoffice.org/85768 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'configmgr/source/readonlyaccess.cxx')
-rw-r--r--configmgr/source/readonlyaccess.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/configmgr/source/readonlyaccess.cxx b/configmgr/source/readonlyaccess.cxx
index 079459dc747f..f8ee113eadf2 100644
--- a/configmgr/source/readonlyaccess.cxx
+++ b/configmgr/source/readonlyaccess.cxx
@@ -93,7 +93,7 @@ void Service::initialize(css::uno::Sequence< css::uno::Any > const & aArguments)
throw css::uno::RuntimeException(
"already initialized", static_cast< cppu::OWeakObject * >(this));
}
- osl::MutexGuard g2(*lock());
+ osl::MutexGuard g2(theConfigLock());
Components & components = Components::getSingleton(context_);
root_ = new RootAccess(components, "/", locale, false);
components.addRootAccess(root_);