diff options
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/helper/displayconnectiondispatch.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/helper/displayconnectiondispatch.cxx b/vcl/source/helper/displayconnectiondispatch.cxx index 85c4e8cdee01..72c3a435a57c 100644 --- a/vcl/source/helper/displayconnectiondispatch.cxx +++ b/vcl/source/helper/displayconnectiondispatch.cxx @@ -56,7 +56,7 @@ void DisplayConnectionDispatch::terminate() SolarMutexReleaser aRel; - MutexGuard aGuard( m_aMutex ); + std::lock_guard aGuard( m_aMutex ); Any aEvent; std::vector< css::uno::Reference< XEventHandler > > aLocalList( m_aHandlers ); for (auto const& elem : aLocalList) @@ -65,14 +65,14 @@ void DisplayConnectionDispatch::terminate() void SAL_CALL DisplayConnectionDispatch::addEventHandler( const Any& /*window*/, const css::uno::Reference< XEventHandler >& handler, sal_Int32 /*eventMask*/ ) { - MutexGuard aGuard( m_aMutex ); + std::lock_guard aGuard( m_aMutex ); m_aHandlers.push_back( handler ); } void SAL_CALL DisplayConnectionDispatch::removeEventHandler( const Any& /*window*/, const css::uno::Reference< XEventHandler >& handler ) { - MutexGuard aGuard( m_aMutex ); + std::lock_guard aGuard( m_aMutex ); m_aHandlers.erase( std::remove(m_aHandlers.begin(), m_aHandlers.end(), handler), m_aHandlers.end() ); } @@ -99,7 +99,7 @@ bool DisplayConnectionDispatch::dispatchEvent( void const * pData, int nBytes ) aEvent <<= aSeq; ::std::vector< css::uno::Reference< XEventHandler > > handlers; { - MutexGuard aGuard( m_aMutex ); + std::lock_guard aGuard( m_aMutex ); handlers = m_aHandlers; } for (auto const& handle : handlers) |