From f292f808a1ced65db45141772dbd6e45c5d151ea Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 20 Jul 2019 18:26:32 +0200 Subject: loplugin:referencecasting in vbahelper..vcl Change-Id: I2bd9e2c4e8a3d56a7b2168bd2ccff389051e5b4c Reviewed-on: https://gerrit.libreoffice.org/76032 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vbahelper/source/msforms/vbacontrol.cxx | 2 +- vbahelper/source/vbahelper/vbashapes.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'vbahelper') diff --git a/vbahelper/source/msforms/vbacontrol.cxx b/vbahelper/source/msforms/vbacontrol.cxx index 5d32f2d9af72..2775290f9bcd 100644 --- a/vbahelper/source/msforms/vbacontrol.cxx +++ b/vbahelper/source/msforms/vbacontrol.cxx @@ -87,7 +87,7 @@ ScVbaControl::getWindowPeer() uno::Reference< view::XControlAccess > xControlAccess( m_xModel->getCurrentController(), uno::UNO_QUERY_THROW ); try { - uno::Reference< awt::XControl > xControl( xControlAccess->getControl( xControlModel ), uno::UNO_QUERY ); + uno::Reference< awt::XControl > xControl = xControlAccess->getControl( xControlModel ); xWinPeer = xControl->getPeer(); } catch(const uno::Exception&) diff --git a/vbahelper/source/vbahelper/vbashapes.cxx b/vbahelper/source/vbahelper/vbashapes.cxx index 59e0d9df1fb5..6d6bd434b35e 100644 --- a/vbahelper/source/vbahelper/vbashapes.cxx +++ b/vbahelper/source/vbahelper/vbashapes.cxx @@ -82,7 +82,7 @@ void ScVbaShapes::initBaseCollection() for ( sal_Int32 index=0; indexgetByIndex( index ) , uno::UNO_QUERY ); uno::Reference< container::XIndexAccess > xShapes( new XNamedObjectCollectionHelper< drawing::XShape >( aShapes ) ); - m_xIndexAccess.set( xShapes, uno::UNO_QUERY ); + m_xIndexAccess = xShapes; m_xNameAccess.set( xShapes, uno::UNO_QUERY ); } -- cgit