sd/source/ui/framework/module/SlideSorterModule.cxx |    5 ++---
 sd/source/ui/framework/module/SlideSorterModule.hxx |   12 +++++-------
 2 files changed, 7 insertions(+), 10 deletions(-)

New commits:
commit 140c06ce5bc049addae56c7c3de296a20042d255
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Tue Dec 28 20:10:16 2021 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Wed Dec 29 07:17:39 2021 +0100

    use comphelper::WeakComponentImplHelper in SlideSorterModule
    
    Change-Id: I5acc47ba25c9dd293a21e4d634fc82eb239a7b06
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127659
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sd/source/ui/framework/module/SlideSorterModule.cxx 
b/sd/source/ui/framework/module/SlideSorterModule.cxx
index 3f0d86b97adb..b254a16dc0cd 100644
--- a/sd/source/ui/framework/module/SlideSorterModule.cxx
+++ b/sd/source/ui/framework/module/SlideSorterModule.cxx
@@ -48,8 +48,7 @@ namespace sd::framework {
 SlideSorterModule::SlideSorterModule (
     const Reference<frame::XController>& rxController,
     const OUString& rsLeftPaneURL)
-    : SlideSorterModuleBase(m_aMutex),
-      
mxResourceId(FrameworkHelper::CreateResourceId(FrameworkHelper::msSlideSorterURL,
 rsLeftPaneURL)),
+    : 
mxResourceId(FrameworkHelper::CreateResourceId(FrameworkHelper::msSlideSorterURL,
 rsLeftPaneURL)),
       
mxMainViewAnchorId(FrameworkHelper::CreateResourceId(FrameworkHelper::msCenterPaneURL)),
       mxViewTabBarId(FrameworkHelper::CreateResourceId(
           FrameworkHelper::msViewTabBarURL,
@@ -231,7 +230,7 @@ bool SlideSorterModule::IsResourceActive (
     return (maActiveMainViewContainer.find(rsMainViewURL) != 
maActiveMainViewContainer.end());
 }
 
-void SAL_CALL SlideSorterModule::disposing()
+void SlideSorterModule::disposing(std::unique_lock<std::mutex>&)
 {
     if (mxConfigurationController.is())
     {
diff --git a/sd/source/ui/framework/module/SlideSorterModule.hxx 
b/sd/source/ui/framework/module/SlideSorterModule.hxx
index adae19e1755f..bec9f5c3cad9 100644
--- a/sd/source/ui/framework/module/SlideSorterModule.hxx
+++ b/sd/source/ui/framework/module/SlideSorterModule.hxx
@@ -20,8 +20,7 @@
 #pragma once
 
 #include <com/sun/star/drawing/framework/XConfigurationChangeListener.hpp>
-#include <cppuhelper/basemutex.hxx>
-#include <cppuhelper/compbase.hxx>
+#include <comphelper/compbase.hxx>
 #include <memory>
 #include <set>
 
@@ -32,7 +31,7 @@ namespace com::sun::star::frame { class XController; }
 
 namespace sd::framework {
 
-typedef ::cppu::WeakComponentImplHelper <
+typedef comphelper::WeakComponentImplHelper <
     css::drawing::framework::XConfigurationChangeListener
     > SlideSorterModuleBase;
 
@@ -45,9 +44,8 @@ typedef ::cppu::WeakComponentImplHelper <
     deactivated or activated manually by the user then the ResourceManager
     detects this and remembers it for the future.
 */
-class SlideSorterModule
-    : private cppu::BaseMutex,
-      public SlideSorterModuleBase
+class SlideSorterModule final
+    : public SlideSorterModuleBase
 {
 public:
     SlideSorterModule (
@@ -62,7 +60,7 @@ public:
     bool IsResourceActive (const OUString& rsMainViewURL);
     void SaveResourceState();
 
-    virtual void SAL_CALL disposing() override;
+    virtual void disposing(std::unique_lock<std::mutex>&) override;
 
     // XConfigurationChangeListener
     virtual void SAL_CALL notifyConfigurationChange (

Reply via email to