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 /basic | |
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 'basic')
-rw-r--r-- | basic/source/classes/eventatt.cxx | 6 | ||||
-rw-r--r-- | basic/source/uno/dlgcont.cxx | 3 | ||||
-rw-r--r-- | basic/source/uno/modsizeexceeded.cxx | 4 |
3 files changed, 6 insertions, 7 deletions
diff --git a/basic/source/classes/eventatt.cxx b/basic/source/classes/eventatt.cxx index 5df743ab4589..457a3d570378 100644 --- a/basic/source/classes/eventatt.cxx +++ b/basic/source/classes/eventatt.cxx @@ -90,7 +90,7 @@ void SFURL_firing_impl( const ScriptEvent& aScriptEvent, Any* pRet, const Refere Any aCtx; aCtx <<= OUString("user"); - xScriptProvider.set( xFactory->createScriptProvider( aCtx ), UNO_QUERY ); + xScriptProvider = xFactory->createScriptProvider( aCtx ); } if ( !xScriptProvider.is() ) @@ -483,10 +483,10 @@ void RTL_Impl_CreateUnoDialog( SbxArray& rPar ) { Reference< frame::XDesktop2 > xDesktop = frame::Desktop::create( xContext ); Reference< container::XEnumeration > xModels; - Reference< container::XEnumerationAccess > xComponents( xDesktop->getComponents(), UNO_QUERY ); + Reference< container::XEnumerationAccess > xComponents = xDesktop->getComponents(); if ( xComponents.is() ) { - xModels.set( xComponents->createEnumeration(), UNO_QUERY ); + xModels = xComponents->createEnumeration(); } if ( xModels.is() ) { diff --git a/basic/source/uno/dlgcont.cxx b/basic/source/uno/dlgcont.cxx index f458e65df0e3..2d4c1f6e532c 100644 --- a/basic/source/uno/dlgcont.cxx +++ b/basic/source/uno/dlgcont.cxx @@ -560,8 +560,7 @@ Reference< resource::XStringResourceResolver > if( !m_xStringResourcePersistence.is() ) m_xStringResourcePersistence = m_pParent->implCreateStringResource( this ); - Reference< resource::XStringResourceResolver > xRet( m_xStringResourcePersistence, UNO_QUERY ); - return xRet; + return m_xStringResourcePersistence; } bool SfxDialogLibrary::containsValidDialog( const css::uno::Any& aElement ) diff --git a/basic/source/uno/modsizeexceeded.cxx b/basic/source/uno/modsizeexceeded.cxx index a4a0ce78e536..a54b426c719e 100644 --- a/basic/source/uno/modsizeexceeded.cxx +++ b/basic/source/uno/modsizeexceeded.cxx @@ -34,8 +34,8 @@ ModuleSizeExceeded::ModuleSizeExceeded( const std::vector< OUString >& sModules m_aRequest <<= aReq; - m_xAbort.set( uno::Reference< task::XInteractionAbort >(new comphelper::OInteractionAbort), uno::UNO_QUERY ); - m_xApprove.set( uno::Reference< task::XInteractionApprove >(new comphelper::OInteractionApprove ), uno::UNO_QUERY ); + m_xAbort = new comphelper::OInteractionAbort; + m_xApprove = new comphelper::OInteractionApprove; m_lContinuations.realloc( 2 ); m_lContinuations[0] = m_xApprove; m_lContinuations[1] = m_xAbort; |