diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-12-28 21:14:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-29 20:48:18 +0100 |
commit | 30102143662a539a740d6a050e49fa25ccfa24ff (patch) | |
tree | df23dd4de1ae4ad3d5361e487022375630f64e1f | |
parent | a67fc38496a7a621357cf156e17ba12bdf05b3c7 (diff) |
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.grandin@collabora.co.uk>
-rw-r--r-- | chart2/source/tools/ModifyListenerCallBack.cxx | 13 |
1 files changed, 5 insertions, 8 deletions
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 ) { } |