From f9b5657c4cff29f4a0cd65d2789e091f1297a152 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 20 Jul 2019 18:27:10 +0200 Subject: loplugin:referencecasting in writerfilter..xmlhelp Change-Id: I84954e35f285d968e3a83591c476b3c814c2a13f Reviewed-on: https://gerrit.libreoffice.org/76033 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlhelp/source/cxxhelp/provider/databases.cxx | 6 +++--- xmlhelp/source/treeview/tvread.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'xmlhelp') diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx index 04aba4c5991e..20f8b51fd861 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.cxx +++ b/xmlhelp/source/cxxhelp/provider/databases.cxx @@ -109,7 +109,7 @@ OUString Databases::expandURL( const OUString& aURL, const Reference< uno::XComp Reference< uri::XUriReference > uriRef; for (;;) { - uriRef.set( xFac->parse( aRetURL ), UNO_QUERY ); + uriRef = xFac->parse( aRetURL ); if ( uriRef.is() ) { Reference < uri::XVndSunStarExpandUrl > sxUri( uriRef, UNO_QUERY ); @@ -140,7 +140,7 @@ Databases::Databases( bool showBasic, vendVersion( "%VENDORVERSION" ), vendShort( "%VENDORSHORT" ) { - m_xSMgr.set( m_xContext->getServiceManager(), UNO_QUERY ); + m_xSMgr = m_xContext->getServiceManager(); m_vAdd[0] = 12; m_vAdd[1] = 15; @@ -1600,7 +1600,7 @@ Reference< XHierarchicalNameAccess > JarFileIterator::implGetJarFromPackage aArg.Value <<= OUString(ZIP_STORAGE_FORMAT_STRING); aArguments[ 1 ] <<= aArg; - Reference< XMultiComponentFactory >xSMgr( m_xContext->getServiceManager(), UNO_QUERY ); + Reference< XMultiComponentFactory >xSMgr = m_xContext->getServiceManager(); Reference< XInterface > xIfc = xSMgr->createInstanceWithArgumentsAndContext( "com.sun.star.packages.comp.ZipPackage", diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx index 72f28fef63c8..9dac255a8320 100644 --- a/xmlhelp/source/treeview/tvread.cxx +++ b/xmlhelp/source/treeview/tvread.cxx @@ -1113,7 +1113,7 @@ OUString TreeFileIterator::expandURL( const OUString& aURL ) Reference< uri::XUriReference > uriRef; for (;;) { - uriRef.set( xFac->parse( aRetURL ), UNO_QUERY ); + uriRef = xFac->parse( aRetURL ); if ( uriRef.is() ) { Reference < uri::XVndSunStarExpandUrl > sxUri( uriRef, UNO_QUERY ); -- cgit