diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-01-24 18:44:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-01-25 06:54:44 +0100 |
commit | 1b728994b89b1518137a538f57ee3d7e6644d8da (patch) | |
tree | d6a10c78fea5fdd6abd07f5c083b27d827a60429 /chart2/source/view/charttypes/BarChart.cxx | |
parent | bf691e4598ae51b534d004ce21f839081dcd3df9 (diff) |
use more concrete types in chart2, ChartType
Change-Id: Ia3d49d53548a843301449c0fea97b81ba85e71e9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128878
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/view/charttypes/BarChart.cxx')
-rw-r--r-- | chart2/source/view/charttypes/BarChart.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chart2/source/view/charttypes/BarChart.cxx b/chart2/source/view/charttypes/BarChart.cxx index 938355192e35..f2dbf0d2422c 100644 --- a/chart2/source/view/charttypes/BarChart.cxx +++ b/chart2/source/view/charttypes/BarChart.cxx @@ -20,6 +20,7 @@ #include "BarChart.hxx" #include "BarPositionHelper.hxx" +#include <ChartType.hxx> #include <ShapeFactory.hxx> #include <CommonConverters.hxx> #include <ObjectIdentifier.hxx> @@ -44,7 +45,7 @@ using namespace ::com::sun::star; using namespace ::rtl::math; using namespace ::com::sun::star::chart2; -BarChart::BarChart( const uno::Reference<XChartType>& xChartTypeModel +BarChart::BarChart( const rtl::Reference<ChartType>& xChartTypeModel , sal_Int32 nDimensionCount ) : VSeriesPlotter( xChartTypeModel, nDimensionCount ) , m_pMainPosHelper( new BarPositionHelper() ) @@ -54,10 +55,10 @@ BarChart::BarChart( const uno::Reference<XChartType>& xChartTypeModel try { - if( m_xChartTypeModelProps.is() ) + if( m_xChartTypeModel.is() ) { - m_xChartTypeModelProps->getPropertyValue( "OverlapSequence" ) >>= m_aOverlapSequence; - m_xChartTypeModelProps->getPropertyValue( "GapwidthSequence" ) >>= m_aGapwidthSequence; + m_xChartTypeModel->getPropertyValue( "OverlapSequence" ) >>= m_aOverlapSequence; + m_xChartTypeModel->getPropertyValue( "GapwidthSequence" ) >>= m_aGapwidthSequence; } } catch( const uno::Exception& ) |