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.grandin@collabora.co.uk>
diff --git a/sd/source/ui/framework/module/CenterViewFocusModule.cxx b/sd/source/ui/framework/module/CenterViewFocusModule.cxx
index ec1fc5061..e36f95e 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 9cd12a0..c6d5d34 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