summaryrefslogtreecommitdiff
path: root/configmgr/source/defaultprovider.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/defaultprovider.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/defaultprovider.cxx')
-rw-r--r--configmgr/source/defaultprovider.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/configmgr/source/defaultprovider.cxx b/configmgr/source/defaultprovider.cxx
index fe79c174f654..7161659e0fa6 100644
--- a/configmgr/source/defaultprovider.cxx
+++ b/configmgr/source/defaultprovider.cxx
@@ -33,7 +33,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
com_sun_star_comp_configuration_DefaultProvider_get_implementation(
css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&)
{
- osl::MutexGuard guard(configmgr::GetLock());
+ osl::MutexGuard guard(*configmgr::lock());
css::uno::Reference<css::uno::XInterface> singleton(
configmgr::configuration_provider::createDefault(context));
singleton->acquire();