chart2/source/tools/ModifyListenerCallBack.cxx |   13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

New commits:
commit 30102143662a539a740d6a050e49fa25ccfa24ff
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Tue Dec 28 21:14:18 2021 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Wed Dec 29 20:48:18 2021 +0100

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

diff --git a/chart2/source/tools/ModifyListenerCallBack.cxx 
b/chart2/source/tools/ModifyListenerCallBack.cxx
index 660ee0b66403..037ee7a7820d 100644
--- a/chart2/source/tools/ModifyListenerCallBack.cxx
+++ b/chart2/source/tools/ModifyListenerCallBack.cxx
@@ -18,20 +18,18 @@
  */
 
 #include <ModifyListenerCallBack.hxx>
-#include <cppuhelper/compbase.hxx>
-#include <cppuhelper/basemutex.hxx>
+#include <comphelper/compbase.hxx>
 
 using namespace ::com::sun::star;
 using ::com::sun::star::uno::Reference;
 
 namespace chart {
 
-typedef ::cppu::WeakComponentImplHelper< css::util::XModifyListener >
+typedef comphelper::WeakComponentImplHelper< css::util::XModifyListener >
     ModifyListenerCallBack_Base;
 
 class ModifyListenerCallBack_impl
-    : public cppu::BaseMutex
-    , public ModifyListenerCallBack_Base
+    : public ModifyListenerCallBack_Base
 {
 public:
     explicit ModifyListenerCallBack_impl( const Link<void*,void>& rCallBack );
@@ -45,7 +43,7 @@ public:
     //XEventListener
     virtual void SAL_CALL disposing( const lang::EventObject& Source ) 
override;
 
-    using ::cppu::WeakComponentImplHelperBase::disposing;
+    using ::comphelper::WeakComponentImplHelperBase::disposing;
 
 private:
     Link<void*,void> m_aLink;//will be called on modify
@@ -53,8 +51,7 @@ private:
 };
 
 ModifyListenerCallBack_impl::ModifyListenerCallBack_impl( const 
Link<void*,void>& rCallBack )
-                        : ModifyListenerCallBack_Base( m_aMutex )
-                        , m_aLink( rCallBack )
+                        : m_aLink( rCallBack )
 {
 }
 

Reply via email to