From f606a6b248956094a14c15d8154af5f8522e415b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 8 Nov 2016 08:32:23 +0200 Subject: loplugin:unnecessaryvirtual in basctl..chart2 Change-Id: Id4eeb12792c3a66b68a907cb459ab437e3d64e4c Reviewed-on: https://gerrit.libreoffice.org/30680 Tested-by: Jenkins Reviewed-by: Noel Grandin --- chart2/source/inc/ExplicitCategoriesProvider.hxx | 4 ++-- chart2/source/inc/NumberFormatterWrapper.hxx | 10 ++++------ chart2/source/inc/TrueGuard.hxx | 4 ++-- 3 files changed, 8 insertions(+), 10 deletions(-) (limited to 'chart2/source/inc') diff --git a/chart2/source/inc/ExplicitCategoriesProvider.hxx b/chart2/source/inc/ExplicitCategoriesProvider.hxx index 54763be4e8a2..7a39bf60ea5d 100644 --- a/chart2/source/inc/ExplicitCategoriesProvider.hxx +++ b/chart2/source/inc/ExplicitCategoriesProvider.hxx @@ -47,13 +47,13 @@ public: virtual css::uno::Sequence< OUString > getStringsForLevel( sal_Int32 nIndex ) const = 0; }; -class OOO_DLLPUBLIC_CHARTTOOLS ExplicitCategoriesProvider +class OOO_DLLPUBLIC_CHARTTOOLS ExplicitCategoriesProvider final { public: ExplicitCategoriesProvider( const css::uno::Reference< css::chart2::XCoordinateSystem >& xCooSysModel , ChartModel& rChartModel ); - virtual ~ExplicitCategoriesProvider(); + ~ExplicitCategoriesProvider(); void init(); diff --git a/chart2/source/inc/NumberFormatterWrapper.hxx b/chart2/source/inc/NumberFormatterWrapper.hxx index 4743054ea3ac..a978b2b33c91 100644 --- a/chart2/source/inc/NumberFormatterWrapper.hxx +++ b/chart2/source/inc/NumberFormatterWrapper.hxx @@ -26,15 +26,13 @@ namespace chart { -/** -*/ class FixedNumberFormatter; -class OOO_DLLPUBLIC_CHARTTOOLS NumberFormatterWrapper +class OOO_DLLPUBLIC_CHARTTOOLS NumberFormatterWrapper final { public: NumberFormatterWrapper( const css::uno::Reference< css::util::XNumberFormatsSupplier >& xSupplier ); - virtual ~NumberFormatterWrapper(); + ~NumberFormatterWrapper(); SvNumberFormatter* getSvNumberFormatter() const { return m_pNumberFormatter;} const css::uno::Reference< css::util::XNumberFormatsSupplier >& @@ -51,12 +49,12 @@ private: //private member css::uno::Any m_aNullDate; }; -class OOO_DLLPUBLIC_CHARTTOOLS FixedNumberFormatter +class OOO_DLLPUBLIC_CHARTTOOLS FixedNumberFormatter final { public: FixedNumberFormatter( const css::uno::Reference< css::util::XNumberFormatsSupplier >& xSupplier , sal_Int32 nNumberFormatKey ); - virtual ~FixedNumberFormatter(); + ~FixedNumberFormatter(); OUString getFormattedString( double fValue, sal_Int32& rLabelColor, bool& rbColorChanged ) const; diff --git a/chart2/source/inc/TrueGuard.hxx b/chart2/source/inc/TrueGuard.hxx index 2cf602a53ea3..36121f309aca 100644 --- a/chart2/source/inc/TrueGuard.hxx +++ b/chart2/source/inc/TrueGuard.hxx @@ -25,11 +25,11 @@ namespace chart { /** This guard sets the given boolean reference to true in the constructor and to false in the destructor */ -class OOO_DLLPUBLIC_CHARTTOOLS TrueGuard +class OOO_DLLPUBLIC_CHARTTOOLS TrueGuard final { public: explicit TrueGuard( bool& rbTrueDuringGuardedTime ); - virtual ~TrueGuard(); + ~TrueGuard(); private: bool& m_rbTrueDuringGuardedTime; -- cgit