diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-19 09:49:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-19 12:22:43 +0200 |
commit | ee2bb231036b1d9d954dec369855948e6ea1f53a (patch) | |
tree | eb7d4e569683d981e7cb9c76863f78739eefa870 /basctl/source/dlged/dlgedobj.cxx | |
parent | 1f6c4328bfa00da5cf351dd050a80b75e0f1acde (diff) |
loplugin:referencecasting in avmedia..basic
Change-Id: I6790b2e3902d64fb6f714f031affa221dbaba014
Reviewed-on: https://gerrit.libreoffice.org/75934
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl/source/dlged/dlgedobj.cxx')
-rw-r--r-- | basctl/source/dlged/dlgedobj.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/basctl/source/dlged/dlgedobj.cxx b/basctl/source/dlged/dlgedobj.cxx index 32ad92c98692..0d491bd303e0 100644 --- a/basctl/source/dlged/dlgedobj.cxx +++ b/basctl/source/dlged/dlgedobj.cxx @@ -464,7 +464,7 @@ void DlgEdObj::NameChange( const css::beans::PropertyChangeEvent& evt ) Reference< container::XNameContainer > xCont(xNameAcc, UNO_QUERY ); if ( xCont.is() ) { - Reference< awt::XControlModel > xCtrl(GetUnoControlModel(), UNO_QUERY); + Reference< awt::XControlModel > xCtrl = GetUnoControlModel(); Any aAny; aAny <<= xCtrl; xCont->removeByName( aOldName ); @@ -1521,7 +1521,7 @@ void DlgEdForm::UpdateGroups() sal_uInt32 nSize = aChildList.size(); Sequence< Reference< awt::XControl > > aSeqControls( nSize ); for ( sal_uInt32 i = 0; i < nSize; ++i ) - aSeqControls.getArray()[i].set( aChildList[i]->GetControl(), UNO_QUERY ); + aSeqControls.getArray()[i] = aChildList[i]->GetControl(); sal_Int32 nGroupCount = xTabModel->getGroupCount(); for ( sal_Int32 nGroup = 0; nGroup < nGroupCount; ++nGroup ) @@ -1557,7 +1557,7 @@ void DlgEdForm::UpdateGroups() } // set the group at the dialog peer - Reference< awt::XControl > xDlg( GetControl(), UNO_QUERY ); + Reference< awt::XControl > xDlg = GetControl(); if ( xDlg.is() ) { Reference< awt::XVclContainerPeer > xDlgPeer( xDlg->getPeer(), UNO_QUERY ); |