diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-07 14:56:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-10 07:44:37 +0100 |
commit | 37a4a250662cbfb394f02ad29edca53d898a05d7 (patch) | |
tree | 98d5a804d5e4e9c3d8b38cc996c928f3cbcc545b /chart2/source/model/main | |
parent | 20dbb652d8bff996ac417f1c2c0894277c52497c (diff) |
loplugin:finalclasses in chart2
Change-Id: I35afa226beb6fe4319313125c323d9f059837357
Reviewed-on: https://gerrit.libreoffice.org/44534
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/model/main')
-rw-r--r-- | chart2/source/model/main/Axis.hxx | 7 | ||||
-rw-r--r-- | chart2/source/model/main/DataPoint.hxx | 5 | ||||
-rw-r--r-- | chart2/source/model/main/FormattedString.hxx | 5 | ||||
-rw-r--r-- | chart2/source/model/main/GridProperties.hxx | 5 | ||||
-rw-r--r-- | chart2/source/model/main/Legend.hxx | 5 | ||||
-rw-r--r-- | chart2/source/model/main/PageBackground.hxx | 5 | ||||
-rw-r--r-- | chart2/source/model/main/Title.hxx | 5 | ||||
-rw-r--r-- | chart2/source/model/main/Wall.hxx | 4 |
8 files changed, 16 insertions, 25 deletions
diff --git a/chart2/source/model/main/Axis.hxx b/chart2/source/model/main/Axis.hxx index e82190e97532..942dd7d4c489 100644 --- a/chart2/source/model/main/Axis.hxx +++ b/chart2/source/model/main/Axis.hxx @@ -48,7 +48,7 @@ typedef ::cppu::WeakImplHelper< Axis_Base; } -class Axis : +class Axis final : public MutexContainer, public impl::Axis_Base, public ::property::OPropertySet @@ -67,7 +67,7 @@ public: /// merge XTypeProvider implementations DECLARE_XTYPEPROVIDER() -protected: +private: explicit Axis( const Axis & rOther ); // late initialization to call after copy-constructing @@ -119,11 +119,8 @@ protected: void fireModifyEvent(); -private: //methods void AllocateSubGrids(); -private: //member - css::uno::Reference< css::util::XModifyListener > m_xModifyEventForwarder; css::chart2::ScaleData m_aScaleData; diff --git a/chart2/source/model/main/DataPoint.hxx b/chart2/source/model/main/DataPoint.hxx index 22914a12018a..6236d210d6b8 100644 --- a/chart2/source/model/main/DataPoint.hxx +++ b/chart2/source/model/main/DataPoint.hxx @@ -44,7 +44,7 @@ typedef ::cppu::WeakImplHelper< DataPoint_Base; } -class DataPoint : +class DataPoint final : public MutexContainer, public impl::DataPoint_Base, public ::property::OPropertySet @@ -60,7 +60,7 @@ public: virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override; virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; -protected: +private: explicit DataPoint( const DataPoint & rOther ); // ____ OPropertySet ____ @@ -101,7 +101,6 @@ protected: virtual void firePropertyChangeEvent() override; using OPropertySet::disposing; -private: css::uno::WeakReference< css::beans::XPropertySet > m_xParentProperties; css::uno::Reference< css::util::XModifyListener > m_xModifyEventForwarder; diff --git a/chart2/source/model/main/FormattedString.hxx b/chart2/source/model/main/FormattedString.hxx index 64fd195ce7e2..16c73372ebcc 100644 --- a/chart2/source/model/main/FormattedString.hxx +++ b/chart2/source/model/main/FormattedString.hxx @@ -43,7 +43,7 @@ typedef ::cppu::WeakImplHelper< FormattedString_Base; } -class FormattedString : +class FormattedString final : public MutexContainer, public impl::FormattedString_Base, public ::property::OPropertySet @@ -75,7 +75,7 @@ public: virtual void SAL_CALL removeVetoableChangeListener(const OUString& p1, const css::uno::Reference<css::beans::XVetoableChangeListener>& p2) override { ::property::OPropertySet::removeVetoableChangeListener(p1, p2); } -protected: +private: explicit FormattedString( const FormattedString & rOther ); // ____ XFormattedString ____ @@ -115,7 +115,6 @@ protected: void fireModifyEvent(); -private: OUString m_aString; css::uno::Reference< css::util::XModifyListener > m_xModifyEventForwarder; diff --git a/chart2/source/model/main/GridProperties.hxx b/chart2/source/model/main/GridProperties.hxx index 3ac0cf21b53b..090e37edc2df 100644 --- a/chart2/source/model/main/GridProperties.hxx +++ b/chart2/source/model/main/GridProperties.hxx @@ -44,7 +44,7 @@ typedef ::cppu::WeakImplHelper< GridProperties_Base; } -class GridProperties : +class GridProperties final : public MutexContainer, public impl::GridProperties_Base, public ::property::OPropertySet @@ -63,7 +63,7 @@ public: /// merge XTypeProvider implementations DECLARE_XTYPEPROVIDER() -protected: +private: explicit GridProperties( const GridProperties & rOther ); // ____ OPropertySet ____ @@ -96,7 +96,6 @@ protected: virtual void firePropertyChangeEvent() override; using OPropertySet::disposing; -private: css::uno::Reference< css::util::XModifyListener > m_xModifyEventForwarder; }; diff --git a/chart2/source/model/main/Legend.hxx b/chart2/source/model/main/Legend.hxx index 19c2a4b72a8d..74eb63c856b2 100644 --- a/chart2/source/model/main/Legend.hxx +++ b/chart2/source/model/main/Legend.hxx @@ -45,7 +45,7 @@ typedef ::cppu::WeakImplHelper< Legend_Base; } -class Legend : +class Legend final : public MutexContainer, public impl::Legend_Base, public ::property::OPropertySet @@ -64,7 +64,7 @@ public: /// merge XTypeProvider implementations DECLARE_XTYPEPROVIDER() -protected: +private: explicit Legend( const Legend & rOther ); // ____ OPropertySet ____ @@ -98,7 +98,6 @@ protected: virtual void firePropertyChangeEvent() override; using OPropertySet::disposing; -private: css::uno::Reference< css::util::XModifyListener > m_xModifyEventForwarder; }; diff --git a/chart2/source/model/main/PageBackground.hxx b/chart2/source/model/main/PageBackground.hxx index 98c9c8c3f99a..2863dedde35e 100644 --- a/chart2/source/model/main/PageBackground.hxx +++ b/chart2/source/model/main/PageBackground.hxx @@ -42,7 +42,7 @@ typedef ::cppu::WeakImplHelper< PageBackground_Base; } -class PageBackground : +class PageBackground final : public MutexContainer, public impl::PageBackground_Base, public ::property::OPropertySet @@ -59,7 +59,7 @@ public: /// merge XInterface implementations DECLARE_XINTERFACE() -protected: +private: explicit PageBackground( const PageBackground & rOther ); // ____ OPropertySet ____ @@ -93,7 +93,6 @@ protected: virtual void firePropertyChangeEvent() override; using OPropertySet::disposing; -private: css::uno::Reference< css::util::XModifyListener > m_xModifyEventForwarder; }; diff --git a/chart2/source/model/main/Title.hxx b/chart2/source/model/main/Title.hxx index 982cbe3a49d2..a402fb9f514a 100644 --- a/chart2/source/model/main/Title.hxx +++ b/chart2/source/model/main/Title.hxx @@ -43,7 +43,7 @@ typedef ::cppu::WeakImplHelper< Title_Base; } -class Title : +class Title final : public MutexContainer, public impl::Title_Base, public ::property::OPropertySet @@ -62,7 +62,7 @@ public: /// merge XTypeProvider implementations DECLARE_XTYPEPROVIDER() -protected: +private: explicit Title( const Title & rOther ); // ____ OPropertySet ____ @@ -102,7 +102,6 @@ protected: void fireModifyEvent(); -private: css::uno::Sequence< css::uno::Reference< css::chart2::XFormattedString > > m_aStrings; css::uno::Reference< css::util::XModifyListener > m_xModifyEventForwarder; diff --git a/chart2/source/model/main/Wall.hxx b/chart2/source/model/main/Wall.hxx index b325aaca0db9..25bc245292a0 100644 --- a/chart2/source/model/main/Wall.hxx +++ b/chart2/source/model/main/Wall.hxx @@ -42,7 +42,7 @@ typedef ::cppu::WeakImplHelper< Wall_Base; } -class Wall : +class Wall final : public MutexContainer, public impl::Wall_Base, public ::property::OPropertySet @@ -54,7 +54,7 @@ public: /// merge XInterface implementations DECLARE_XINTERFACE() -protected: +private: explicit Wall( const Wall & rOther ); // ____ OPropertySet ____ |