summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-01-23 20:25:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-24 17:06:27 +0100
commit0310ae3049ba33ce07f48b1e0df2fbbcf2a87883 (patch)
treef205303f77d13b64dc25aed120c213d56bcb557f /unotools
parent4656414b34408d3f127cb78b0ffc47f84754381b (diff)
use osl::Guard instead of abusing rtl::Reference
to make this code easier to read Change-Id: Ia1ea52cd713572be768f7b505080c08f15f6c542 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87290 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/configitem.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx
index 5de369999fc3..a6785079723a 100644
--- a/unotools/source/config/configitem.cxx
+++ b/unotools/source/config/configitem.cxx
@@ -125,7 +125,7 @@ void ConfigChangeListener_Impl::changesOccurred( const ChangesEvent& rEvent )
::comphelper::SolarMutex *pMutex = ::comphelper::SolarMutex::get();
if ( pMutex )
{
- rtl::Reference< comphelper::SolarMutex > aGuard( pMutex );
+ osl::Guard<comphelper::SolarMutex> aMutexGuard( pMutex );
aChangedNames.realloc(nNotify);
pParent->CallNotify(aChangedNames);
}