summaryrefslogtreecommitdiffstats
path: root/chart2/source/controller/dialogs/DialogModel.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-01-20 22:18:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-01-21 13:45:14 +0100
commit928cb2963844ffd07fdbda6ec55f8de0c51581ff (patch)
treebfd6329d1c7138e80cd00cf32e4cf5ab9ea558fb /chart2/source/controller/dialogs/DialogModel.cxx
parentfix opengl slide transition (diff)
downloadcore-928cb2963844ffd07fdbda6ec55f8de0c51581ff.tar.gz
core-928cb2963844ffd07fdbda6ec55f8de0c51581ff.zip
use more concrete types in chart2, BaseCoordinateSystem
Change-Id: I25fc26c9c3eb861d72c44ac04e502b2f002ef951 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128711 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/controller/dialogs/DialogModel.cxx')
-rw-r--r--chart2/source/controller/dialogs/DialogModel.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/chart2/source/controller/dialogs/DialogModel.cxx b/chart2/source/controller/dialogs/DialogModel.cxx
index eed859f5d948..73b438acef92 100644
--- a/chart2/source/controller/dialogs/DialogModel.cxx
+++ b/chart2/source/controller/dialogs/DialogModel.cxx
@@ -30,6 +30,7 @@
#include <ChartTypeTemplate.hxx>
#include <ThreeDHelper.hxx>
#include <ChartModel.hxx>
+#include <BaseCoordinateSystem.hxx>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/chart2/AxisType.hpp>
@@ -472,12 +473,11 @@ std::vector< Reference< XDataSeriesContainer > >
rtl::Reference< Diagram > xDiagram = m_xChartDocument->getFirstChartDiagram();
if( xDiagram.is())
{
- const Sequence< Reference< XCoordinateSystem > > aCooSysSeq(
- xDiagram->getCoordinateSystems());
- for( Reference< XCoordinateSystem > const & coords : aCooSysSeq )
+ const std::vector< rtl::Reference< BaseCoordinateSystem > > & aCooSysSeq(
+ xDiagram->getBaseCoordinateSystems());
+ for( rtl::Reference< BaseCoordinateSystem > const & coords : aCooSysSeq )
{
- Reference< XChartTypeContainer > xCTCnt( coords, uno::UNO_QUERY_THROW );
- const Sequence< Reference< XChartType > > aChartTypeSeq( xCTCnt->getChartTypes());
+ const Sequence< Reference< XChartType > > aChartTypeSeq( coords->getChartTypes());
std::transform(
aChartTypeSeq.begin(), aChartTypeSeq.end(),
std::back_inserter( aResult ),