summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-08 08:32:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-08 08:57:05 +0000
commitf606a6b248956094a14c15d8154af5f8522e415b (patch)
tree706e1c8708627fd3819f84972e7baf17036fe720 /chart2
parent98460e7a502e61f8885c6fb960f0f9fa69de4f3e (diff)
loplugin:unnecessaryvirtual in basctl..chart2
Change-Id: Id4eeb12792c3a66b68a907cb459ab437e3d64e4c Reviewed-on: https://gerrit.libreoffice.org/30680 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/chartapiwrapper/Chart2ModelContact.hxx4
-rw-r--r--chart2/source/controller/dialogs/DataBrowserModel.hxx4
-rw-r--r--chart2/source/controller/dialogs/res_DataLabel.hxx4
-rw-r--r--chart2/source/controller/dialogs/res_Trendline.hxx4
-rw-r--r--chart2/source/controller/inc/ChartController.hxx4
-rw-r--r--chart2/source/controller/inc/TimerTriggeredControllerLock.hxx4
-rw-r--r--chart2/source/controller/inc/ViewElementListProvider.hxx4
-rw-r--r--chart2/source/controller/inc/dlg_ObjectProperties.hxx4
-rw-r--r--chart2/source/controller/inc/res_LegendPosition.hxx4
-rw-r--r--chart2/source/controller/inc/res_Titles.hxx4
-rw-r--r--chart2/source/inc/ExplicitCategoriesProvider.hxx4
-rw-r--r--chart2/source/inc/NumberFormatterWrapper.hxx10
-rw-r--r--chart2/source/inc/TrueGuard.hxx4
-rw-r--r--chart2/source/view/inc/VDiagram.hxx4
-rw-r--r--chart2/source/view/main/VTitle.hxx7
15 files changed, 32 insertions, 37 deletions
diff --git a/chart2/source/controller/chartapiwrapper/Chart2ModelContact.hxx b/chart2/source/controller/chartapiwrapper/Chart2ModelContact.hxx
index a0e9305676b2..214963c38376 100644
--- a/chart2/source/controller/chartapiwrapper/Chart2ModelContact.hxx
+++ b/chart2/source/controller/chartapiwrapper/Chart2ModelContact.hxx
@@ -43,11 +43,11 @@ class ChartModel;
namespace wrapper
{
-class Chart2ModelContact
+class Chart2ModelContact final
{
public:
explicit Chart2ModelContact( const css::uno::Reference< css::uno::XComponentContext >& xContext );
- virtual ~Chart2ModelContact();
+ ~Chart2ModelContact();
public:
void setModel( const css::uno::Reference< css::frame::XModel >& xChartModel );
diff --git a/chart2/source/controller/dialogs/DataBrowserModel.hxx b/chart2/source/controller/dialogs/DataBrowserModel.hxx
index c57d4ef320bf..f191a607faee 100644
--- a/chart2/source/controller/dialogs/DataBrowserModel.hxx
+++ b/chart2/source/controller/dialogs/DataBrowserModel.hxx
@@ -35,13 +35,13 @@ namespace chart
class DialogModel;
-class DataBrowserModel
+class DataBrowserModel final
{
public:
explicit DataBrowserModel(
const css::uno::Reference< css::chart2::XChartDocument > & xChartDoc,
const css::uno::Reference< css::uno::XComponentContext > & xContext );
- virtual ~DataBrowserModel();
+ ~DataBrowserModel();
/** Inserts a new data series after the data series to which the data column
with index nAfterColumnIndex belongs.
diff --git a/chart2/source/controller/dialogs/res_DataLabel.hxx b/chart2/source/controller/dialogs/res_DataLabel.hxx
index 01366656179d..4b86489a9fab 100644
--- a/chart2/source/controller/dialogs/res_DataLabel.hxx
+++ b/chart2/source/controller/dialogs/res_DataLabel.hxx
@@ -31,11 +31,11 @@ class SvNumberFormatter;
namespace chart
{
-class DataLabelResources
+class DataLabelResources final
{
public:
DataLabelResources( VclBuilderContainer* pWindow, vcl::Window* pParent, const SfxItemSet& rInAttrs );
- virtual ~DataLabelResources();
+ ~DataLabelResources();
bool FillItemSet(SfxItemSet* rOutAttrs) const;
void Reset(const SfxItemSet& rInAttrs);
diff --git a/chart2/source/controller/dialogs/res_Trendline.hxx b/chart2/source/controller/dialogs/res_Trendline.hxx
index 1dccbd3a4f0c..ffe35e738cd2 100644
--- a/chart2/source/controller/dialogs/res_Trendline.hxx
+++ b/chart2/source/controller/dialogs/res_Trendline.hxx
@@ -31,11 +31,11 @@
namespace chart
{
-class TrendlineResources
+class TrendlineResources final
{
public:
TrendlineResources( vcl::Window* pParent, const SfxItemSet& rInAttrs );
- virtual ~TrendlineResources();
+ ~TrendlineResources();
void Reset(const SfxItemSet& rInAttrs);
bool FillItemSet(SfxItemSet* rOutAttrs) const;
diff --git a/chart2/source/controller/inc/ChartController.hxx b/chart2/source/controller/inc/ChartController.hxx
index a128a03d2a05..b056c794546d 100644
--- a/chart2/source/controller/inc/ChartController.hxx
+++ b/chart2/source/controller/inc/ChartController.hxx
@@ -408,14 +408,14 @@ private:
//each controller might consider himself as owner of the model first
bool m_bOwnership;
};
- class TheModelRef
+ class TheModelRef final
{
public:
TheModelRef( TheModel* pTheModel, ::osl::Mutex& rMutex );
TheModelRef( const TheModelRef& rTheModel, ::osl::Mutex& rMutex );
TheModelRef& operator=(ChartController::TheModel* pTheModel);
TheModelRef& operator=(const TheModelRef& rTheModel);
- virtual ~TheModelRef();
+ ~TheModelRef();
bool is() const;
TheModel* operator->() const { return m_pTheModel; }
private:
diff --git a/chart2/source/controller/inc/TimerTriggeredControllerLock.hxx b/chart2/source/controller/inc/TimerTriggeredControllerLock.hxx
index dd2c3dc2031e..2e26054de9c0 100644
--- a/chart2/source/controller/inc/TimerTriggeredControllerLock.hxx
+++ b/chart2/source/controller/inc/TimerTriggeredControllerLock.hxx
@@ -28,11 +28,11 @@
namespace chart
{
-class TimerTriggeredControllerLock
+class TimerTriggeredControllerLock final
{
public:
TimerTriggeredControllerLock( const css::uno::Reference< css::frame::XModel >& xModel );
- virtual ~TimerTriggeredControllerLock();
+ ~TimerTriggeredControllerLock();
void startTimer();
diff --git a/chart2/source/controller/inc/ViewElementListProvider.hxx b/chart2/source/controller/inc/ViewElementListProvider.hxx
index c1b9bdd93502..d61d380d1992 100644
--- a/chart2/source/controller/inc/ViewElementListProvider.hxx
+++ b/chart2/source/controller/inc/ViewElementListProvider.hxx
@@ -29,11 +29,11 @@ namespace chart
class DrawModelWrapper;
-class ViewElementListProvider
+class ViewElementListProvider final
{
public:
ViewElementListProvider( DrawModelWrapper* pDrawModelWrapper );
- virtual ~ViewElementListProvider();
+ ~ViewElementListProvider();
XColorListRef GetColorTable() const;
XDashListRef GetDashList() const;
diff --git a/chart2/source/controller/inc/dlg_ObjectProperties.hxx b/chart2/source/controller/inc/dlg_ObjectProperties.hxx
index 4c82d01bdc0f..2eda271ae2cd 100644
--- a/chart2/source/controller/inc/dlg_ObjectProperties.hxx
+++ b/chart2/source/controller/inc/dlg_ObjectProperties.hxx
@@ -27,11 +27,11 @@
namespace chart
{
-class ObjectPropertiesDialogParameter
+class ObjectPropertiesDialogParameter final
{
public:
ObjectPropertiesDialogParameter( const OUString& rObjectCID );
- virtual ~ObjectPropertiesDialogParameter();
+ ~ObjectPropertiesDialogParameter();
void init( const css::uno::Reference< css::frame::XModel >& xModel );
ObjectType getObjectType() const { return m_eObjectType;}
diff --git a/chart2/source/controller/inc/res_LegendPosition.hxx b/chart2/source/controller/inc/res_LegendPosition.hxx
index cf6442008160..bed2a64cfc8d 100644
--- a/chart2/source/controller/inc/res_LegendPosition.hxx
+++ b/chart2/source/controller/inc/res_LegendPosition.hxx
@@ -29,7 +29,7 @@
namespace chart
{
-class LegendPositionResources
+class LegendPositionResources final
{
public:
@@ -38,7 +38,7 @@ public:
//constructor inclusive Display checkbox
LegendPositionResources(VclBuilderContainer& rParent, const css::uno::Reference<
css::uno::XComponentContext>& xCC );
- virtual ~LegendPositionResources();
+ ~LegendPositionResources();
void writeToResources( const css::uno::Reference< css::frame::XModel >& xChartModel );
void writeToModel( const css::uno::Reference< css::frame::XModel >& xChartModel ) const;
diff --git a/chart2/source/controller/inc/res_Titles.hxx b/chart2/source/controller/inc/res_Titles.hxx
index 79c1ce777142..1902a5773859 100644
--- a/chart2/source/controller/inc/res_Titles.hxx
+++ b/chart2/source/controller/inc/res_Titles.hxx
@@ -26,11 +26,11 @@
namespace chart
{
-class TitleResources
+class TitleResources final
{
public:
TitleResources(VclBuilderContainer& rParent, bool bShowSecondaryAxesTitle);
- virtual ~TitleResources();
+ ~TitleResources();
void writeToResources( const TitleDialogData& rInput );
void readFromResources( TitleDialogData& rOutput );
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;
diff --git a/chart2/source/view/inc/VDiagram.hxx b/chart2/source/view/inc/VDiagram.hxx
index 9a684ea6d2b0..6dc7fbd1924e 100644
--- a/chart2/source/view/inc/VDiagram.hxx
+++ b/chart2/source/view/inc/VDiagram.hxx
@@ -36,13 +36,13 @@ The axes and data series are subobjects which are created and managed by the
diagram.
*/
-class VDiagram
+class VDiagram final
{
public: //methods
VDiagram( const css::uno::Reference<css::chart2::XDiagram>& xDiagram,
const css::drawing::Direction3D& rPreferredAspectRatio,
sal_Int32 nDimension = 3 );
- virtual ~VDiagram();
+ ~VDiagram();
void init(
const css::uno::Reference<css::drawing::XShapes>& xTarget,
diff --git a/chart2/source/view/main/VTitle.hxx b/chart2/source/view/main/VTitle.hxx
index 983b34193a5c..7ccbe7a60ff1 100644
--- a/chart2/source/view/main/VTitle.hxx
+++ b/chart2/source/view/main/VTitle.hxx
@@ -26,14 +26,11 @@
namespace chart
{
-/**
-*/
-
-class VTitle
+class VTitle final
{
public:
explicit VTitle( const css::uno::Reference< css::chart2::XTitle > & xTitle );
- virtual ~VTitle();
+ ~VTitle();
void init( const css::uno::Reference< css::drawing::XShapes >& xTargetPage
, const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory