diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-11 16:15:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-18 13:45:03 +0100 |
commit | 1ad26c9fc237e00247f18fcc8ccc778fba88d1fd (patch) | |
tree | 0df230e3bfb929be219e5ef2f8d1574a83a6c959 /xmlhelp | |
parent | 653e9627828adafc833fd179cea495f4b6e409ce (diff) |
loplugin:referencecasting add check for new rtl::Reference operator
rtl::Reference now has a conversion operator to uno::Reference,
so look for places where we can simplify the code and use that.
Change-Id: Ic81db50d670bed5e875300577d4bf5f3599cc2c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110798
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/content.cxx | 2 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/databases.cxx | 2 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/provider.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/content.cxx b/xmlhelp/source/cxxhelp/provider/content.cxx index 4ad2c3fa78c8..273c68555c9f 100644 --- a/xmlhelp/source/cxxhelp/provider/content.cxx +++ b/xmlhelp/source/cxxhelp/provider/content.cxx @@ -438,7 +438,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues( xRow->appendVoid( rProp ); } - return uno::Reference< sdbc::XRow >( xRow.get() ); + return xRow; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx index 1f1a2868c477..335820c21d7e 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.cxx +++ b/xmlhelp/source/cxxhelp/provider/databases.cxx @@ -806,7 +806,7 @@ Reference< XHierarchicalNameAccess > Databases::jarFile( const OUString& jar, rtl::Reference<XInputStream_impl> p(new XInputStream_impl( zipFile )); if( p->CtorSuccess() ) { - aArguments[ 0 ] <<= Reference< XInputStream >( p.get() ); + aArguments[ 0 ] <<= Reference< XInputStream >( p ); } else { diff --git a/xmlhelp/source/cxxhelp/provider/provider.cxx b/xmlhelp/source/cxxhelp/provider/provider.cxx index 6f690da96583..76bd92482e69 100644 --- a/xmlhelp/source/cxxhelp/provider/provider.cxx +++ b/xmlhelp/source/cxxhelp/provider/provider.cxx @@ -143,7 +143,7 @@ ContentProvider::queryContent( // Check, if a content with given id already exists... uno::Reference< ucb::XContent > xContent - = queryExistingContent( xCanonicId ).get(); + = queryExistingContent( xCanonicId ); if ( xContent.is() ) return xContent; |