summaryrefslogtreecommitdiff
path: root/chart2/source/controller/main/SelectionHelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-01-21 15:10:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-01-21 17:09:33 +0100
commitfadb53a393b52eb4c9336fa8c9c780b4d6b3e391 (patch)
treea8fdc5c04972af5978b16041d5afcee591bbdfc8 /chart2/source/controller/main/SelectionHelper.cxx
parent58daee3693e6881e1412715db195009c9ab39f46 (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/controller/main/SelectionHelper.cxx')
-rw-r--r--chart2/source/controller/main/SelectionHelper.cxx5
1 files changed, 3 insertions, 2 deletions
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 <DiagramHelper.hxx>
#include <Diagram.hxx>
#include <ChartModelHelper.hxx>
+#include <ChartModel.hxx>
#include <com/sun/star/frame/XModel.hpp>
#include <svx/svdpage.hxx>
@@ -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;