summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-20 18:26:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-21 08:50:11 +0200
commitf292f808a1ced65db45141772dbd6e45c5d151ea (patch)
treeb1be7fb0f652f7474f729d4307ed1e09f50772d4 /vbahelper
parent7272951c121735a7350fa70840b255b7ef831f1a (diff)
loplugin:referencecasting in vbahelper..vcl
Change-Id: I2bd9e2c4e8a3d56a7b2168bd2ccff389051e5b4c Reviewed-on: https://gerrit.libreoffice.org/76032 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/msforms/vbacontrol.cxx2
-rw-r--r--vbahelper/source/vbahelper/vbashapes.cxx2
2 files changed, 2 insertions, 2 deletions
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; index<nLen; ++index )
aShapes.emplace_back( m_xIndexAccess->getByIndex( 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 );
}