From f7a86c5cdf4323c99d26512bf78de7f7c380667d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 12 May 2021 15:07:37 +0200 Subject: simplify the vcl<->toolkit connection No need to store two different pointers and hide the underlying class behind an UNO interface Change-Id: I72c55e912caa9eae1cffa6c9d1b1d480e5668d40 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115496 Tested-by: Jenkins Reviewed-by: Noel Grandin --- chart2/source/controller/main/ChartController.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chart2') diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index 08b8c65c31f7..544084306fdf 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -436,7 +436,7 @@ void SAL_CALL ChartController::attachFrame( SolarMutexGuard aSolarGuard; auto pChartWindow = VclPtr::Create(this,pParent,pParent?pParent->GetStyle():0); pChartWindow->SetBackground();//no Background - m_xViewWindow.set( pChartWindow->GetComponentInterface(), uno::UNO_QUERY ); + m_xViewWindow = pChartWindow->GetComponentInterfaceAs(); pChartWindow->Show(); m_apDropTargetHelper.reset( new ChartDropTargetHelper( pChartWindow->GetDropTarget(), -- cgit