diff options
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/configitem.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx index fd1c423c78d7..7d03ab82d849 100644 --- a/unotools/source/config/configitem.cxx +++ b/unotools/source/config/configitem.cxx @@ -40,7 +40,8 @@ #include <com/sun/star/util/XStringEscape.hpp> #include <com/sun/star/util/XChangesBatch.hpp> #include <osl/diagnose.h> -#include <tools/solarmutex.hxx> +#include <comphelper/solarmutex.hxx> +#include <rtl/ref.hxx> #include <rtl/ustrbuf.hxx> using namespace utl; @@ -155,11 +156,12 @@ void ConfigChangeListener_Impl::changesOccurred( const ChangesEvent& rEvent ) th } if( nNotify ) { - if ( ::tools::SolarMutex::Acquire() ) + ::comphelper::SolarMutex *pMutex = ::comphelper::SolarMutex::get(); + if ( pMutex ) { + rtl::Reference< comphelper::SolarMutex > aGuard( pMutex ); aChangedNames.realloc(nNotify); pParent->CallNotify(aChangedNames); - ::tools::SolarMutex::Release(); } } } |