Kaydet (Commit) f606a6b2 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unnecessaryvirtual in basctl..chart2

Change-Id: Id4eeb12792c3a66b68a907cb459ab437e3d64e4c
Reviewed-on: https://gerrit.libreoffice.org/30680Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 98460e7a
...@@ -92,7 +92,7 @@ public: ...@@ -92,7 +92,7 @@ public:
}; };
// LibUserData // LibUserData
class LibUserData class LibUserData final
{ {
private: private:
ScriptDocument m_aDocument; ScriptDocument m_aDocument;
...@@ -102,7 +102,7 @@ public: ...@@ -102,7 +102,7 @@ public:
: m_aDocument(rDocument) : m_aDocument(rDocument)
{ {
} }
virtual ~LibUserData() {}; ~LibUserData() {};
const ScriptDocument& GetDocument() const { return m_aDocument; } const ScriptDocument& GetDocument() const { return m_aDocument; }
}; };
......
...@@ -43,11 +43,11 @@ class ChartModel; ...@@ -43,11 +43,11 @@ class ChartModel;
namespace wrapper namespace wrapper
{ {
class Chart2ModelContact class Chart2ModelContact final
{ {
public: public:
explicit Chart2ModelContact( const css::uno::Reference< css::uno::XComponentContext >& xContext ); explicit Chart2ModelContact( const css::uno::Reference< css::uno::XComponentContext >& xContext );
virtual ~Chart2ModelContact(); ~Chart2ModelContact();
public: public:
void setModel( const css::uno::Reference< css::frame::XModel >& xChartModel ); void setModel( const css::uno::Reference< css::frame::XModel >& xChartModel );
......
...@@ -35,13 +35,13 @@ namespace chart ...@@ -35,13 +35,13 @@ namespace chart
class DialogModel; class DialogModel;
class DataBrowserModel class DataBrowserModel final
{ {
public: public:
explicit DataBrowserModel( explicit DataBrowserModel(
const css::uno::Reference< css::chart2::XChartDocument > & xChartDoc, const css::uno::Reference< css::chart2::XChartDocument > & xChartDoc,
const css::uno::Reference< css::uno::XComponentContext > & xContext ); 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 /** Inserts a new data series after the data series to which the data column
with index nAfterColumnIndex belongs. with index nAfterColumnIndex belongs.
......
...@@ -31,11 +31,11 @@ class SvNumberFormatter; ...@@ -31,11 +31,11 @@ class SvNumberFormatter;
namespace chart namespace chart
{ {
class DataLabelResources class DataLabelResources final
{ {
public: public:
DataLabelResources( VclBuilderContainer* pWindow, vcl::Window* pParent, const SfxItemSet& rInAttrs ); DataLabelResources( VclBuilderContainer* pWindow, vcl::Window* pParent, const SfxItemSet& rInAttrs );
virtual ~DataLabelResources(); ~DataLabelResources();
bool FillItemSet(SfxItemSet* rOutAttrs) const; bool FillItemSet(SfxItemSet* rOutAttrs) const;
void Reset(const SfxItemSet& rInAttrs); void Reset(const SfxItemSet& rInAttrs);
......
...@@ -31,11 +31,11 @@ ...@@ -31,11 +31,11 @@
namespace chart namespace chart
{ {
class TrendlineResources class TrendlineResources final
{ {
public: public:
TrendlineResources( vcl::Window* pParent, const SfxItemSet& rInAttrs ); TrendlineResources( vcl::Window* pParent, const SfxItemSet& rInAttrs );
virtual ~TrendlineResources(); ~TrendlineResources();
void Reset(const SfxItemSet& rInAttrs); void Reset(const SfxItemSet& rInAttrs);
bool FillItemSet(SfxItemSet* rOutAttrs) const; bool FillItemSet(SfxItemSet* rOutAttrs) const;
......
...@@ -408,14 +408,14 @@ private: ...@@ -408,14 +408,14 @@ private:
//each controller might consider himself as owner of the model first //each controller might consider himself as owner of the model first
bool m_bOwnership; bool m_bOwnership;
}; };
class TheModelRef class TheModelRef final
{ {
public: public:
TheModelRef( TheModel* pTheModel, ::osl::Mutex& rMutex ); TheModelRef( TheModel* pTheModel, ::osl::Mutex& rMutex );
TheModelRef( const TheModelRef& rTheModel, ::osl::Mutex& rMutex ); TheModelRef( const TheModelRef& rTheModel, ::osl::Mutex& rMutex );
TheModelRef& operator=(ChartController::TheModel* pTheModel); TheModelRef& operator=(ChartController::TheModel* pTheModel);
TheModelRef& operator=(const TheModelRef& rTheModel); TheModelRef& operator=(const TheModelRef& rTheModel);
virtual ~TheModelRef(); ~TheModelRef();
bool is() const; bool is() const;
TheModel* operator->() const { return m_pTheModel; } TheModel* operator->() const { return m_pTheModel; }
private: private:
......
...@@ -28,11 +28,11 @@ ...@@ -28,11 +28,11 @@
namespace chart namespace chart
{ {
class TimerTriggeredControllerLock class TimerTriggeredControllerLock final
{ {
public: public:
TimerTriggeredControllerLock( const css::uno::Reference< css::frame::XModel >& xModel ); TimerTriggeredControllerLock( const css::uno::Reference< css::frame::XModel >& xModel );
virtual ~TimerTriggeredControllerLock(); ~TimerTriggeredControllerLock();
void startTimer(); void startTimer();
......
...@@ -29,11 +29,11 @@ namespace chart ...@@ -29,11 +29,11 @@ namespace chart
class DrawModelWrapper; class DrawModelWrapper;
class ViewElementListProvider class ViewElementListProvider final
{ {
public: public:
ViewElementListProvider( DrawModelWrapper* pDrawModelWrapper ); ViewElementListProvider( DrawModelWrapper* pDrawModelWrapper );
virtual ~ViewElementListProvider(); ~ViewElementListProvider();
XColorListRef GetColorTable() const; XColorListRef GetColorTable() const;
XDashListRef GetDashList() const; XDashListRef GetDashList() const;
......
...@@ -27,11 +27,11 @@ ...@@ -27,11 +27,11 @@
namespace chart namespace chart
{ {
class ObjectPropertiesDialogParameter class ObjectPropertiesDialogParameter final
{ {
public: public:
ObjectPropertiesDialogParameter( const OUString& rObjectCID ); ObjectPropertiesDialogParameter( const OUString& rObjectCID );
virtual ~ObjectPropertiesDialogParameter(); ~ObjectPropertiesDialogParameter();
void init( const css::uno::Reference< css::frame::XModel >& xModel ); void init( const css::uno::Reference< css::frame::XModel >& xModel );
ObjectType getObjectType() const { return m_eObjectType;} ObjectType getObjectType() const { return m_eObjectType;}
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
namespace chart namespace chart
{ {
class LegendPositionResources class LegendPositionResources final
{ {
public: public:
...@@ -38,7 +38,7 @@ public: ...@@ -38,7 +38,7 @@ public:
//constructor inclusive Display checkbox //constructor inclusive Display checkbox
LegendPositionResources(VclBuilderContainer& rParent, const css::uno::Reference< LegendPositionResources(VclBuilderContainer& rParent, const css::uno::Reference<
css::uno::XComponentContext>& xCC ); css::uno::XComponentContext>& xCC );
virtual ~LegendPositionResources(); ~LegendPositionResources();
void writeToResources( const css::uno::Reference< css::frame::XModel >& xChartModel ); void writeToResources( const css::uno::Reference< css::frame::XModel >& xChartModel );
void writeToModel( const css::uno::Reference< css::frame::XModel >& xChartModel ) const; void writeToModel( const css::uno::Reference< css::frame::XModel >& xChartModel ) const;
......
...@@ -26,11 +26,11 @@ ...@@ -26,11 +26,11 @@
namespace chart namespace chart
{ {
class TitleResources class TitleResources final
{ {
public: public:
TitleResources(VclBuilderContainer& rParent, bool bShowSecondaryAxesTitle); TitleResources(VclBuilderContainer& rParent, bool bShowSecondaryAxesTitle);
virtual ~TitleResources(); ~TitleResources();
void writeToResources( const TitleDialogData& rInput ); void writeToResources( const TitleDialogData& rInput );
void readFromResources( TitleDialogData& rOutput ); void readFromResources( TitleDialogData& rOutput );
......
...@@ -47,13 +47,13 @@ public: ...@@ -47,13 +47,13 @@ public:
virtual css::uno::Sequence< OUString > getStringsForLevel( sal_Int32 nIndex ) const = 0; virtual css::uno::Sequence< OUString > getStringsForLevel( sal_Int32 nIndex ) const = 0;
}; };
class OOO_DLLPUBLIC_CHARTTOOLS ExplicitCategoriesProvider class OOO_DLLPUBLIC_CHARTTOOLS ExplicitCategoriesProvider final
{ {
public: public:
ExplicitCategoriesProvider( const css::uno::Reference< css::chart2::XCoordinateSystem >& xCooSysModel ExplicitCategoriesProvider( const css::uno::Reference< css::chart2::XCoordinateSystem >& xCooSysModel
, ChartModel& rChartModel , ChartModel& rChartModel
); );
virtual ~ExplicitCategoriesProvider(); ~ExplicitCategoriesProvider();
void init(); void init();
......
...@@ -26,15 +26,13 @@ ...@@ -26,15 +26,13 @@
namespace chart namespace chart
{ {
/**
*/
class FixedNumberFormatter; class FixedNumberFormatter;
class OOO_DLLPUBLIC_CHARTTOOLS NumberFormatterWrapper class OOO_DLLPUBLIC_CHARTTOOLS NumberFormatterWrapper final
{ {
public: public:
NumberFormatterWrapper( const css::uno::Reference< css::util::XNumberFormatsSupplier >& xSupplier ); NumberFormatterWrapper( const css::uno::Reference< css::util::XNumberFormatsSupplier >& xSupplier );
virtual ~NumberFormatterWrapper(); ~NumberFormatterWrapper();
SvNumberFormatter* getSvNumberFormatter() const { return m_pNumberFormatter;} SvNumberFormatter* getSvNumberFormatter() const { return m_pNumberFormatter;}
const css::uno::Reference< css::util::XNumberFormatsSupplier >& const css::uno::Reference< css::util::XNumberFormatsSupplier >&
...@@ -51,12 +49,12 @@ private: //private member ...@@ -51,12 +49,12 @@ private: //private member
css::uno::Any m_aNullDate; css::uno::Any m_aNullDate;
}; };
class OOO_DLLPUBLIC_CHARTTOOLS FixedNumberFormatter class OOO_DLLPUBLIC_CHARTTOOLS FixedNumberFormatter final
{ {
public: public:
FixedNumberFormatter( const css::uno::Reference< css::util::XNumberFormatsSupplier >& xSupplier FixedNumberFormatter( const css::uno::Reference< css::util::XNumberFormatsSupplier >& xSupplier
, sal_Int32 nNumberFormatKey ); , sal_Int32 nNumberFormatKey );
virtual ~FixedNumberFormatter(); ~FixedNumberFormatter();
OUString getFormattedString( double fValue, sal_Int32& rLabelColor, bool& rbColorChanged ) const; OUString getFormattedString( double fValue, sal_Int32& rLabelColor, bool& rbColorChanged ) const;
......
...@@ -25,11 +25,11 @@ namespace chart ...@@ -25,11 +25,11 @@ namespace chart
{ {
/** This guard sets the given boolean reference to true in the constructor and to false in the destructor /** 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: public:
explicit TrueGuard( bool& rbTrueDuringGuardedTime ); explicit TrueGuard( bool& rbTrueDuringGuardedTime );
virtual ~TrueGuard(); ~TrueGuard();
private: private:
bool& m_rbTrueDuringGuardedTime; bool& m_rbTrueDuringGuardedTime;
......
...@@ -36,13 +36,13 @@ The axes and data series are subobjects which are created and managed by the ...@@ -36,13 +36,13 @@ The axes and data series are subobjects which are created and managed by the
diagram. diagram.
*/ */
class VDiagram class VDiagram final
{ {
public: //methods public: //methods
VDiagram( const css::uno::Reference<css::chart2::XDiagram>& xDiagram, VDiagram( const css::uno::Reference<css::chart2::XDiagram>& xDiagram,
const css::drawing::Direction3D& rPreferredAspectRatio, const css::drawing::Direction3D& rPreferredAspectRatio,
sal_Int32 nDimension = 3 ); sal_Int32 nDimension = 3 );
virtual ~VDiagram(); ~VDiagram();
void init( void init(
const css::uno::Reference<css::drawing::XShapes>& xTarget, const css::uno::Reference<css::drawing::XShapes>& xTarget,
......
...@@ -26,14 +26,11 @@ ...@@ -26,14 +26,11 @@
namespace chart namespace chart
{ {
/** class VTitle final
*/
class VTitle
{ {
public: public:
explicit VTitle( const css::uno::Reference< css::chart2::XTitle > & xTitle ); explicit VTitle( const css::uno::Reference< css::chart2::XTitle > & xTitle );
virtual ~VTitle(); ~VTitle();
void init( const css::uno::Reference< css::drawing::XShapes >& xTargetPage void init( const css::uno::Reference< css::drawing::XShapes >& xTargetPage
, const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory , const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory
......
...@@ -70,7 +70,7 @@ public: ...@@ -70,7 +70,7 @@ public:
static void SetAutoCorrectOn( bool b ); static void SetAutoCorrectOn( bool b );
}; };
class BASIC_DLLPUBLIC CodeCompleteDataCache class BASIC_DLLPUBLIC CodeCompleteDataCache final
{ {
/* /*
* cache to store data for * cache to store data for
...@@ -82,7 +82,7 @@ private: ...@@ -82,7 +82,7 @@ private:
public: public:
CodeCompleteDataCache(){} CodeCompleteDataCache(){}
virtual ~CodeCompleteDataCache(){} ~CodeCompleteDataCache(){}
friend BASIC_DLLPUBLIC std::ostream& operator<< (std::ostream& aStream, const CodeCompleteDataCache& aCache); friend BASIC_DLLPUBLIC std::ostream& operator<< (std::ostream& aStream, const CodeCompleteDataCache& aCache);
......
...@@ -37,11 +37,11 @@ typedef ::std::set< ::rtl::OString > StringSet; ...@@ -37,11 +37,11 @@ typedef ::std::set< ::rtl::OString > StringSet;
// FileStream // FileStream
class FileStream class FileStream final
{ {
public: public:
FileStream(); FileStream();
virtual ~FileStream(); ~FileStream();
bool isValid(); bool isValid();
...@@ -84,11 +84,11 @@ bool removeTypeFile(const ::rtl::OString& fileName); ...@@ -84,11 +84,11 @@ bool removeTypeFile(const ::rtl::OString& fileName);
::rtl::OUString convertToFileUrl(const ::rtl::OString& fileName); ::rtl::OUString convertToFileUrl(const ::rtl::OString& fileName);
class CannotDumpException { class CannotDumpException final {
public: public:
CannotDumpException(OUString const & message): message_(message) {} CannotDumpException(OUString const & message): message_(message) {}
virtual ~CannotDumpException() throw (); ~CannotDumpException() throw ();
const OUString& getMessage() const { return message_; } const OUString& getMessage() const { return message_; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment