diff options
author | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2018-05-10 10:51:42 +0200 |
---|---|---|
committer | Björn Michaelsen <bjoern.michaelsen@libreoffice.org> | 2018-05-28 08:19:48 +0200 |
commit | 74aeeb9a6293b87df26cf6db565d50c26da2c3fe (patch) | |
tree | 568b8e451c38c2a6d3fcd1ebcbfc95cac05672c0 /sw | |
parent | 5f1ce0a77c63df597fba9d4cbd45be3a266343c3 (diff) |
dont use SwClient/SwModify in unocore: ChartDataProvider
- and to the couragous person writing that comment:
* yes, likely you should have come back to check if this was
superfluous
* no, you didnt (so far)
Change-Id: I56633aee4b49979b60417f88235e9393c0bc48c8
Reviewed-on: https://gerrit.libreoffice.org/54895
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/unochart.hxx | 7 | ||||
-rw-r--r-- | sw/source/core/unocore/unochart.cxx | 6 |
2 files changed, 1 insertions, 12 deletions
diff --git a/sw/inc/unochart.hxx b/sw/inc/unochart.hxx index ff11d96a25f5..cbbe98b235cb 100644 --- a/sw/inc/unochart.hxx +++ b/sw/inc/unochart.hxx @@ -100,8 +100,7 @@ typedef cppu::WeakImplHelper SwChartDataProviderBaseClass; class SwChartDataProvider : - public SwChartDataProviderBaseClass, - public SwClient + public SwChartDataProviderBaseClass { // used to keep weak-references to all data-sequences of a single table @@ -142,10 +141,6 @@ class SwChartDataProvider : static OUString GetBrokenCellRangeForExport( const OUString &rCellRangeRepresentation ); -protected: - //SwClient - virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) override; - public: SwChartDataProvider( const SwDoc* pDoc ); virtual ~SwChartDataProvider() override; diff --git a/sw/source/core/unocore/unochart.cxx b/sw/source/core/unocore/unochart.cxx index 130f0fa22181..9821b5c3cba6 100644 --- a/sw/source/core/unocore/unochart.cxx +++ b/sw/source/core/unocore/unochart.cxx @@ -1455,12 +1455,6 @@ uno::Sequence< OUString > SAL_CALL SwChartDataProvider::getSupportedServiceNames return { "com.sun.star.chart2.data.DataProvider"}; } -void SwChartDataProvider::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) -{ - // actually this function should be superfluous (need to check later) - ClientModify(this, pOld, pNew ); -} - void SwChartDataProvider::AddDataSequence( const SwTable &rTable, uno::Reference< chart2::data::XDataSequence > const &rxDataSequence ) { aDataSequences[ &rTable ].insert( rxDataSequence ); |