include/svx/unoshape.hxx        |   14 +++++---------
 svx/source/unodraw/unoshape.cxx |    8 ++++----
 2 files changed, 9 insertions(+), 13 deletions(-)

New commits:
commit 3cdab0587977927b781a631dd8e2d43a3faa3c07
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Sat Dec 18 10:01:32 2021 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Sat Dec 18 20:50:58 2021 +0100

    use more cppu::BaseMutex
    
    Change-Id: I00b63f8ce201d2f83b89b493b4ae086368ed54d6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127082
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/include/svx/unoshape.hxx b/include/svx/unoshape.hxx
index 3d3d5bea3a9b..381a2a723b90 100644
--- a/include/svx/unoshape.hxx
+++ b/include/svx/unoshape.hxx
@@ -56,6 +56,7 @@
 
 #include <comphelper/servicehelper.hxx>
 
+#include <cppuhelper/basemutex.hxx>
 #include <cppuhelper/implbase12.hxx>
 
 class SfxItemSet;
@@ -70,12 +71,6 @@ namespace basegfx
         class B2DPolyPolygon;
     } // end of namespace basegfx
 
-class SvxShapeMutex
-{
-protected:
-    ::osl::Mutex maMutex;
-};
-
 struct SvxShapeImpl;
 class SvxShapeMaster;
 class SvxItemPropertySet;
@@ -103,9 +98,10 @@ typedef ::cppu::WeakAggImplHelper12<
     css::document::XActionLockable,
     css::beans::XMultiPropertyStates> SvxShape_UnoImplHelper;
 
-class SVXCORE_DLLPUBLIC SvxShape : public SvxShape_UnoImplHelper,
-                 public SfxListener,
-                 public SvxShapeMutex
+class SVXCORE_DLLPUBLIC SvxShape :
+                 public cppu::BaseMutex,
+                 public SvxShape_UnoImplHelper,
+                 public SfxListener
 {
 private:
     css::awt::Size maSize;
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index eed9f89f2116..86b3d875d64a 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -194,7 +194,7 @@ sal_Int16 GetTextFitToSizeScale(SdrObject* pObject)
 
 SvxShape::SvxShape( SdrObject* pObject )
 :   maSize(100,100)
-,   mpImpl( new SvxShapeImpl( *this, maMutex ) )
+,   mpImpl( new SvxShapeImpl( *this, m_aMutex ) )
 ,   mbIsMultiPropertyCall(false)
 ,   mpPropSet(getSvxMapProvider().GetPropertySet(SVXMAP_SHAPE, 
SdrObject::GetGlobalDrawObjectItemPool()))
 ,   maPropMapEntries(getSvxMapProvider().GetMap(SVXMAP_SHAPE))
@@ -207,7 +207,7 @@ SvxShape::SvxShape( SdrObject* pObject )
 
 SvxShape::SvxShape( SdrObject* pObject, const SfxItemPropertyMapEntry* 
pEntries, const SvxItemPropertySet* pPropertySet )
 :   maSize(100,100)
-,   mpImpl( new SvxShapeImpl( *this, maMutex ) )
+,   mpImpl( new SvxShapeImpl( *this, m_aMutex ) )
 ,   mbIsMultiPropertyCall(false)
 ,   mpPropSet(pPropertySet)
 ,   maPropMapEntries(pEntries)
@@ -1353,14 +1353,14 @@ Reference< beans::XPropertySetInfo > const &
 
 void SAL_CALL SvxShape::addPropertyChangeListener( const OUString& 
_propertyName, const Reference< beans::XPropertyChangeListener >& _listener  )
 {
-    ::osl::MutexGuard aGuard( maMutex );
+    ::osl::MutexGuard aGuard( m_aMutex );
     mpImpl->maPropertyNotifier.addPropertyChangeListener( _propertyName, 
_listener );
 }
 
 
 void SAL_CALL SvxShape::removePropertyChangeListener( const OUString& 
_propertyName, const Reference< beans::XPropertyChangeListener >& _listener  )
 {
-    ::osl::MutexGuard aGuard( maMutex );
+    ::osl::MutexGuard aGuard( m_aMutex );
     mpImpl->maPropertyNotifier.removePropertyChangeListener( _propertyName, 
_listener );
 }
 

Reply via email to