sd/source/ui/framework/module/CenterViewFocusModule.cxx |    5 ++---
 sd/source/ui/framework/module/CenterViewFocusModule.hxx |    9 ++++-----
 2 files changed, 6 insertions(+), 8 deletions(-)

New commits:
commit 0c920406888f141d163ce2df01e707404f9e7acd
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Tue Dec 28 20:56:26 2021 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Wed Dec 29 17:25:54 2021 +0100

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

diff --git a/sd/source/ui/framework/module/CenterViewFocusModule.cxx 
b/sd/source/ui/framework/module/CenterViewFocusModule.cxx
index ec1fc506126b..e36f95e33d9c 100644
--- a/sd/source/ui/framework/module/CenterViewFocusModule.cxx
+++ b/sd/source/ui/framework/module/CenterViewFocusModule.cxx
@@ -40,8 +40,7 @@ namespace sd::framework {
 //===== CenterViewFocusModule 
====================================================
 
 CenterViewFocusModule::CenterViewFocusModule (Reference<frame::XController> 
const & rxController)
-    : CenterViewFocusModuleInterfaceBase(m_aMutex),
-      mbValid(false),
+    : mbValid(false),
       mpBase(nullptr),
       mbNewViewCreated(false)
 {
@@ -79,7 +78,7 @@ CenterViewFocusModule::~CenterViewFocusModule()
 {
 }
 
-void SAL_CALL CenterViewFocusModule::disposing()
+void CenterViewFocusModule::disposing(std::unique_lock<std::mutex>&)
 {
     if (mxConfigurationController.is())
         mxConfigurationController->removeConfigurationChangeListener(this);
diff --git a/sd/source/ui/framework/module/CenterViewFocusModule.hxx 
b/sd/source/ui/framework/module/CenterViewFocusModule.hxx
index 9cd12a077061..c6d5d348e3b2 100644
--- a/sd/source/ui/framework/module/CenterViewFocusModule.hxx
+++ b/sd/source/ui/framework/module/CenterViewFocusModule.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>
 
 namespace com::sun::star::drawing::framework
 {
@@ -39,7 +38,7 @@ class ViewShellBase;
 
 namespace sd::framework
 {
-typedef 
::cppu::WeakComponentImplHelper<css::drawing::framework::XConfigurationChangeListener>
+typedef 
comphelper::WeakComponentImplHelper<css::drawing::framework::XConfigurationChangeListener>
     CenterViewFocusModuleInterfaceBase;
 
 /** This module waits for new views to be created for the center pane and
@@ -47,14 +46,14 @@ typedef 
::cppu::WeakComponentImplHelper<css::drawing::framework::XConfigurationC
     we are moving away from the shell stack this module may become obsolete
     or has to be modified.
 */
-class CenterViewFocusModule : private cppu::BaseMutex, public 
CenterViewFocusModuleInterfaceBase
+class CenterViewFocusModule final : public CenterViewFocusModuleInterfaceBase
 {
 public:
     explicit CenterViewFocusModule(
         css::uno::Reference<css::frame::XController> const& rxController);
     virtual ~CenterViewFocusModule() override;
 
-    virtual void SAL_CALL disposing() override;
+    virtual void disposing(std::unique_lock<std::mutex>&) override;
 
     // XConfigurationChangeListener
 

Reply via email to