sfx2/source/control/thumbnailviewacc.cxx |    6 +++---
 sfx2/source/control/thumbnailviewacc.hxx |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 0b9649e287abe80870a8caa0e40fdb591e22ef4d
Author:     Noel Grandin <[email protected]>
AuthorDate: Sun Aug 1 18:34:58 2021 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Sun Aug 1 22:01:00 2021 +0200

    osl::Mutex->std::mutex in ThumbnailViewItemAcc
    
    Change-Id: I9667e378542e7254c52fd57e379ae19a69ff08b7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119825
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/sfx2/source/control/thumbnailviewacc.cxx 
b/sfx2/source/control/thumbnailviewacc.cxx
index e723ad9efe31..36c321bf3b24 100644
--- a/sfx2/source/control/thumbnailviewacc.cxx
+++ b/sfx2/source/control/thumbnailviewacc.cxx
@@ -517,7 +517,7 @@ ThumbnailViewItemAcc::~ThumbnailViewItemAcc()
 
 void ThumbnailViewItemAcc::ParentDestroyed()
 {
-    const ::osl::MutexGuard aGuard( maMutex );
+    std::lock_guard aGuard( maMutex );
     mpParent = nullptr;
 }
 
@@ -731,7 +731,7 @@ lang::Locale SAL_CALL ThumbnailViewItemAcc::getLocale()
 
 void SAL_CALL ThumbnailViewItemAcc::addAccessibleEventListener( const 
uno::Reference< accessibility::XAccessibleEventListener >& rxListener )
 {
-    const ::osl::MutexGuard aGuard( maMutex );
+    std::lock_guard aGuard( maMutex );
 
     if( !rxListener.is() )
         return;
@@ -753,7 +753,7 @@ void SAL_CALL 
ThumbnailViewItemAcc::addAccessibleEventListener( const uno::Refer
 
 void SAL_CALL ThumbnailViewItemAcc::removeAccessibleEventListener( const 
uno::Reference< accessibility::XAccessibleEventListener >& rxListener )
 {
-    const ::osl::MutexGuard aGuard( maMutex );
+    std::lock_guard aGuard( maMutex );
 
     if( rxListener.is() )
     {
diff --git a/sfx2/source/control/thumbnailviewacc.hxx 
b/sfx2/source/control/thumbnailviewacc.hxx
index 48c7d70bb79c..2e31843d6438 100644
--- a/sfx2/source/control/thumbnailviewacc.hxx
+++ b/sfx2/source/control/thumbnailviewacc.hxx
@@ -20,7 +20,6 @@
 #ifndef INCLUDED_SFX2_SOURCE_CONTROL_THUMBNAILVIEWACC_HXX
 #define INCLUDED_SFX2_SOURCE_CONTROL_THUMBNAILVIEWACC_HXX
 
-#include <osl/mutex.hxx>
 #include <cppuhelper/implbase.hxx>
 #include <cppuhelper/compbase.hxx>
 #include <cppuhelper/basemutex.hxx>
@@ -32,6 +31,7 @@
 #include <com/sun/star/accessibility/XAccessibleSelection.hpp>
 #include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp>
 
+#include <mutex>
 #include <vcl/vclptr.hxx>
 #include <vector>
 
@@ -164,7 +164,7 @@ private:
 
     ::std::vector< css::uno::Reference< 
css::accessibility::XAccessibleEventListener > >
                                                                         
mxEventListeners;
-    ::osl::Mutex                                                        
maMutex;
+    std::mutex                                                          
maMutex;
     ThumbnailViewItem*                                                  
mpParent;
     bool                                                                
mbIsTransientChildrenDisabled;
 

Reply via email to