diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-02-17 11:07:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-02-17 13:36:48 +0100 |
commit | 7e5036bb5790e1ee753d890e8b270eaceee74ce7 (patch) | |
tree | 20d5a683c843188e39bba765c155f76ced523c0d /chart2 | |
parent | 59ac648a1482d9422b8f279bcb284a214032f5cf (diff) |
loplugin:unnecessaryvirtual
Change-Id: I44c70bd930380d0e3f76524f37e6276cf4faeccc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130061
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/inc/DataInterpreter.hxx | 2 | ||||
-rw-r--r-- | chart2/source/model/template/ChartTypeTemplate.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/inc/DataInterpreter.hxx b/chart2/source/inc/DataInterpreter.hxx index 5c426bab7eee..cdb0db5cc909 100644 --- a/chart2/source/inc/DataInterpreter.hxx +++ b/chart2/source/inc/DataInterpreter.hxx @@ -133,7 +133,7 @@ public: interpretDataSource()( <code>xSource</code> ), the result of this method should be <code>xSource</code>.</p> */ - virtual rtl::Reference< ::chart::DataSource > mergeInterpretedData( + static rtl::Reference< ::chart::DataSource > mergeInterpretedData( const InterpretedData& aInterpretedData ); /** Get chart information that is specific to a particular chart diff --git a/chart2/source/model/template/ChartTypeTemplate.cxx b/chart2/source/model/template/ChartTypeTemplate.cxx index 1398785066fe..ba8d28c781bb 100644 --- a/chart2/source/model/template/ChartTypeTemplate.cxx +++ b/chart2/source/model/template/ChartTypeTemplate.cxx @@ -203,7 +203,7 @@ void ChartTypeTemplate::changeDiagram( const rtl::Reference< Diagram >& xDiagram } else { - rtl::Reference< DataSource > xSource( xInterpreter->mergeInterpretedData( aData )); + rtl::Reference< DataSource > xSource = DataInterpreter::mergeInterpretedData( aData ); // todo: get a "range-union" from the data provider by calling // OUString aRange = getRangeRepresentationByData( xSource ); // xSource.set( getDataByRangeRepresentation( aRange, aParam )); |