summaryrefslogtreecommitdiff
path: root/configmgr/source/readonlyaccess.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-22 11:58:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-22 21:17:15 +0200
commit55d47fd99c673ecb9830e9a60c55a3cc0d008b28 (patch)
tree9a3b37798a0bb09b0bcf6251e01f19fa7d29f7a4 /configmgr/source/readonlyaccess.cxx
parent9ca9d364581e64b8e7ba9b4cd8d745ba22b2a2d8 (diff)
Revert "simplify locking in configmgr"
This reverts commit 7f7dad7018c874542e0ab6a0fb0f05f21d112b53. And add some comments to the definition of the lock, to make it purpose obvious. Change-Id: Ib1a0b6345efab0febe9191341ce264c8d6070932 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119366 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 76da9e5c71a9..286963c783a2 100644
--- a/configmgr/source/readonlyaccess.cxx
+++ b/configmgr/source/readonlyaccess.cxx
@@ -92,7 +92,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(configmgr::GetLock());
+ osl::MutexGuard g2(*lock());
Components & components = Components::getSingleton(context_);
root_ = new RootAccess(components, "/", locale, false);
components.addRootAccess(root_);