From 610ebe90e15176a9106552790c896a8f29a3cbc7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 1 Jan 2022 12:31:27 +0200 Subject: use concrete types in chart2, SvxDrawPage Change-Id: I0bdaa74595c0201a04490e293619c2c399ab03bd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127838 Tested-by: Jenkins Reviewed-by: Noel Grandin --- chart2/source/controller/main/ObjectHierarchy.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'chart2/source/controller/main/ObjectHierarchy.cxx') diff --git a/chart2/source/controller/main/ObjectHierarchy.cxx b/chart2/source/controller/main/ObjectHierarchy.cxx index 7934f58fc4d0..7ed950e05ebc 100644 --- a/chart2/source/controller/main/ObjectHierarchy.cxx +++ b/chart2/source/controller/main/ObjectHierarchy.cxx @@ -449,14 +449,13 @@ void ObjectHierarchy::createAdditionalShapesTree( ObjectHierarchy::tChildContain { if ( m_pExplicitValueProvider ) { - Reference< drawing::XDrawPage > xDrawPage( m_pExplicitValueProvider->getDrawModelWrapper()->getMainDrawPage() ); - Reference< drawing::XShapes > xDrawPageShapes( xDrawPage, uno::UNO_QUERY_THROW ); + rtl::Reference xDrawPage( m_pExplicitValueProvider->getDrawModelWrapper()->getMainDrawPage() ); Reference< drawing::XShapes > xChartRoot( DrawModelWrapper::getChartRootShape( xDrawPage ) ); - sal_Int32 nCount = xDrawPageShapes->getCount(); + sal_Int32 nCount = xDrawPage->getCount(); for ( sal_Int32 i = 0; i < nCount; ++i ) { Reference< drawing::XShape > xShape; - if ( xDrawPageShapes->getByIndex( i ) >>= xShape ) + if ( xDrawPage->getByIndex( i ) >>= xShape ) { if ( xShape.is() && xShape != xChartRoot ) { -- cgit