diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-15 09:41:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-15 13:36:07 +0100 |
commit | 96be489048ca97bfc07d4aa252675b76dfca73a2 (patch) | |
tree | ba8300a10d40a107e14112163535dfc34cb23532 /ucb/source/ucp/gio | |
parent | 08b82fa3ee915666ef8b60aeb670c38f64553630 (diff) |
loplugin:referencecasting in ucb
Change-Id: I7531ea30e8d141dce1d1bc27ffbca3fcf28d0ef5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110892
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/ucp/gio')
-rw-r--r-- | ucb/source/ucp/gio/gio_content.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/gio/gio_mount.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/gio/gio_provider.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx index f67ab4738abc..5a5bf05a32cd 100644 --- a/ucb/source/ucp/gio/gio_content.cxx +++ b/ucb/source/ucp/gio/gio_content.cxx @@ -546,7 +546,7 @@ css::uno::Reference< css::sdbc::XRow > Content::getPropertyValues( } } - return css::uno::Reference< css::sdbc::XRow >( xRow.get() ); + return xRow; } static css::lang::IllegalAccessException diff --git a/ucb/source/ucp/gio/gio_mount.cxx b/ucb/source/ucp/gio/gio_mount.cxx index b78817c670e2..dfbb9a0310e5 100644 --- a/ucb/source/ucp/gio/gio_mount.cxx +++ b/ucb/source/ucp/gio/gio_mount.cxx @@ -146,7 +146,7 @@ static void ooo_mount_operation_ask_password (GMountOperation *op, rtl::Reference< ucbhelper::SimpleAuthenticationRequest > xRequest = new ucbhelper::SimpleAuthenticationRequest (OUString() /* FIXME: provide URL here */, OUString(), eDomain, aDomain, eUserName, aUserName, ePassword, aPassword); - xIH->handle( xRequest.get() ); + xIH->handle( xRequest ); rtl::Reference< ucbhelper::InteractionContinuation > xSelection = xRequest->getSelection(); diff --git a/ucb/source/ucp/gio/gio_provider.cxx b/ucb/source/ucp/gio/gio_provider.cxx index 224ab0eacf88..4ac5ae6fffa6 100644 --- a/ucb/source/ucp/gio/gio_provider.cxx +++ b/ucb/source/ucp/gio/gio_provider.cxx @@ -37,7 +37,7 @@ ContentProvider::queryContent( osl::MutexGuard aGuard( m_aMutex ); // Check, if a content with given id already exists... - css::uno::Reference< css::ucb::XContent > xContent = queryExistingContent( Identifier ).get(); + css::uno::Reference< css::ucb::XContent > xContent = queryExistingContent( Identifier ); if ( xContent.is() ) return xContent; |