diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-12-28 21:33:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-29 19:50:15 +0100 |
commit | f55f46594cf43b46ed092af415a8a3af6972a7cd (patch) | |
tree | 48514cbd323498ad2f8392dfdae6c3da52788155 /chart2/source/inc | |
parent | 94fbd711d0184b847ba78b70114ce9bdde04a63b (diff) |
use comphelper::WeakComponentImplHelper in RangeHighlighter
Change-Id: I38d14bb253981db18885355c64accaa91c3accd7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127694
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/inc')
-rw-r--r-- | chart2/source/inc/RangeHighlighter.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chart2/source/inc/RangeHighlighter.hxx b/chart2/source/inc/RangeHighlighter.hxx index 43f22d985763..3c9278fc1328 100644 --- a/chart2/source/inc/RangeHighlighter.hxx +++ b/chart2/source/inc/RangeHighlighter.hxx @@ -18,8 +18,8 @@ */ #pragma once -#include <cppuhelper/basemutex.hxx> -#include <cppuhelper/compbase.hxx> +#include <comphelper/compbase.hxx> +#include <comphelper/interfacecontainer4.hxx> #include <com/sun/star/chart2/data/XRangeHighlighter.hpp> #include <com/sun/star/view/XSelectionChangeListener.hpp> @@ -38,15 +38,14 @@ namespace chart namespace impl { -typedef ::cppu::WeakComponentImplHelper< +typedef comphelper::WeakComponentImplHelper< css::chart2::data::XRangeHighlighter, css::view::XSelectionChangeListener > RangeHighlighter_Base; } -class RangeHighlighter : - public cppu::BaseMutex, +class RangeHighlighter final : public impl::RangeHighlighter_Base { public: @@ -72,7 +71,7 @@ protected: // ____ WeakComponentImplHelperBase ____ // is called when dispose() is called at this component - virtual void SAL_CALL disposing() override; + virtual void disposing(std::unique_lock<std::mutex>&) override; private: void fireSelectionEvent(); @@ -95,6 +94,7 @@ private: m_aSelectedRanges; sal_Int32 m_nAddedListenerCount; bool m_bIncludeHiddenCells; + comphelper::OInterfaceContainerHelper4<css::view::XSelectionChangeListener> maSelectionChangeListeners; }; } // namespace chart |