From b0e0a74d72af09c01e0c6e1324b42fcc2ef55451 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 13 Jan 2023 19:18:46 +0200 Subject: use more concrete types in chart Change-Id: I87a7aed6f0168e92f3de7e188a1858b93b44a9cd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145489 Tested-by: Jenkins Reviewed-by: Noel Grandin --- chart2/source/controller/inc/ChartController.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chart2/source/controller/inc/ChartController.hxx') diff --git a/chart2/source/controller/inc/ChartController.hxx b/chart2/source/controller/inc/ChartController.hxx index f948e3bc6303..63fb4d4fc302 100644 --- a/chart2/source/controller/inc/ChartController.hxx +++ b/chart2/source/controller/inc/ChartController.hxx @@ -83,6 +83,7 @@ namespace chart { class UndoGuard; +class ChartView; class ChartWindow; class DrawModelWrapper; class DrawViewWrapper; @@ -341,7 +342,7 @@ public: void NotifyUndoActionHdl( std::unique_ptr ); - css::uno::Reference const & getChartView() const; + rtl::Reference<::chart::ChartView> const & getChartView() const { return m_xChartView; } rtl::Reference<::chart::ChartModel> getChartModel(); rtl::Reference<::chart::Diagram> getFirstDiagram(); @@ -395,7 +396,7 @@ private: //view css::uno::Reference m_xViewWindow; - css::uno::Reference m_xChartView; + rtl::Reference<::chart::ChartView> m_xChartView; std::shared_ptr< DrawModelWrapper > m_pDrawModelWrapper; std::unique_ptr m_pDrawViewWrapper; -- cgit