summaryrefslogtreecommitdiff
path: root/chart2/source/model
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-02-02 18:58:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-02-04 12:22:31 +0100
commitf90ac900a9ff48c4ea8ae797972ed4c442b516fb (patch)
treeed5a9f28f4289238eeb69ad43029984d11370945 /chart2/source/model
parentfc03ef1e02da261073994e7478b08fa57b3ea962 (diff)
use more concrete types in chart2, DataSource
Change-Id: If5001a8a8fc1103a8d662429d3077c7ce81cc2b2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129457 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/model')
-rw-r--r--chart2/source/model/template/ChartTypeTemplate.cxx3
-rw-r--r--chart2/source/model/template/DataInterpreter.cxx3
2 files changed, 4 insertions, 2 deletions
diff --git a/chart2/source/model/template/ChartTypeTemplate.cxx b/chart2/source/model/template/ChartTypeTemplate.cxx
index 0183907419ad..902c54ed6a89 100644
--- a/chart2/source/model/template/ChartTypeTemplate.cxx
+++ b/chart2/source/model/template/ChartTypeTemplate.cxx
@@ -23,6 +23,7 @@
#include <ChartTypeHelper.hxx>
#include <ChartType.hxx>
#include <DataSeries.hxx>
+#include <DataSource.hxx>
#include <AxisHelper.hxx>
#include <Diagram.hxx>
@@ -203,7 +204,7 @@ void ChartTypeTemplate::changeDiagram( const rtl::Reference< Diagram >& xDiagram
}
else
{
- Reference< data::XDataSource > xSource( xInterpreter->mergeInterpretedData( aData ));
+ rtl::Reference< DataSource > xSource( xInterpreter->mergeInterpretedData( aData ));
// todo: get a "range-union" from the data provider by calling
// OUString aRange = getRangeRepresentationByData( xSource );
// xSource.set( getDataByRangeRepresentation( aRange, aParam ));
diff --git a/chart2/source/model/template/DataInterpreter.cxx b/chart2/source/model/template/DataInterpreter.cxx
index 9461008c87ad..38d1ff5be1c1 100644
--- a/chart2/source/model/template/DataInterpreter.cxx
+++ b/chart2/source/model/template/DataInterpreter.cxx
@@ -19,6 +19,7 @@
#include <DataInterpreter.hxx>
#include <DataSeries.hxx>
+#include <DataSource.hxx>
#include <DataSourceHelper.hxx>
#include <DataSeriesHelper.hxx>
#include <CommonConverters.hxx>
@@ -327,7 +328,7 @@ private:
} // anonymous namespace
-Reference< data::XDataSource > DataInterpreter::mergeInterpretedData(
+rtl::Reference< DataSource > DataInterpreter::mergeInterpretedData(
const InterpretedData& aInterpretedData )
{
vector< Reference< data::XLabeledDataSequence > > aResultVec;