From fadb53a393b52eb4c9336fa8c9c780b4d6b3e391 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 21 Jan 2022 15:10:53 +0200 Subject: use more concrete types in chart2, ChartModel Change-Id: I6930e09ed471592d7c8b8fb16565b355b17bffc1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128731 Tested-by: Jenkins Reviewed-by: Noel Grandin --- chart2/source/controller/main/SelectionHelper.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chart2/source/controller/main/SelectionHelper.cxx') diff --git a/chart2/source/controller/main/SelectionHelper.cxx b/chart2/source/controller/main/SelectionHelper.cxx index bf9ec005bd76..433a157ba828 100644 --- a/chart2/source/controller/main/SelectionHelper.cxx +++ b/chart2/source/controller/main/SelectionHelper.cxx @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -304,7 +305,7 @@ bool Selection::isResizeableObjectSelected() const } } -bool Selection::isRotateableObjectSelected( const uno::Reference< frame::XModel >& xChartModel ) const +bool Selection::isRotateableObjectSelected( const rtl::Reference<::chart::ChartModel>& xChartModel ) const { return SelectionHelper::isRotateableObject( m_aSelectedOID.getObjectCID(), xChartModel ); } @@ -443,7 +444,7 @@ OUString SelectionHelper::getHitObjectCID( } bool SelectionHelper::isRotateableObject( const OUString& rCID - , const uno::Reference< frame::XModel >& xChartModel ) + , const rtl::Reference<::chart::ChartModel>& xChartModel ) { if( !ObjectIdentifier::isRotateableObject( rCID ) ) return false; -- cgit