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 /ucbhelper | |
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 'ucbhelper')
-rw-r--r-- | ucbhelper/source/provider/cancelcommandexecution.cxx | 4 | ||||
-rw-r--r-- | ucbhelper/source/provider/contenthelper.cxx | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/ucbhelper/source/provider/cancelcommandexecution.cxx b/ucbhelper/source/provider/cancelcommandexecution.cxx index f700c8a4afc1..8aac85c240aa 100644 --- a/ucbhelper/source/provider/cancelcommandexecution.cxx +++ b/ucbhelper/source/provider/cancelcommandexecution.cxx @@ -58,7 +58,7 @@ void cancelCommandExecution( const uno::Any & rException, xRequest->setContinuations( aContinuations ); - xIH->handle( xRequest.get() ); + xIH->handle( xRequest ); rtl::Reference< ucbhelper::InteractionContinuation > xSelection = xRequest->getSelection(); @@ -94,7 +94,7 @@ void cancelCommandExecution( const ucb::IOErrorCode eError, task::XInteractionHandler > xIH = xEnv->getInteractionHandler(); if ( xIH.is() ) { - xIH->handle( xRequest.get() ); + xIH->handle( xRequest ); rtl::Reference< ucbhelper::InteractionContinuation > xSelection = xRequest->getSelection(); diff --git a/ucbhelper/source/provider/contenthelper.cxx b/ucbhelper/source/provider/contenthelper.cxx index 32dff58783e6..f273d51907d4 100644 --- a/ucbhelper/source/provider/contenthelper.cxx +++ b/ucbhelper/source/provider/contenthelper.cxx @@ -854,8 +854,7 @@ ContentImplHelper::getCommandInfo( else if ( !bCache ) m_pImpl->m_xCommandsInfo->reset(); - return uno::Reference< css::ucb::XCommandInfo >( - m_pImpl->m_xCommandsInfo.get() ); + return m_pImpl->m_xCommandsInfo; } uno::Reference< beans::XPropertySetInfo > @@ -871,8 +870,7 @@ ContentImplHelper::getPropertySetInfo( else if ( !bCache ) m_pImpl->m_xPropSetInfo->reset(); - return uno::Reference< beans::XPropertySetInfo >( - m_pImpl->m_xPropSetInfo.get() ); + return m_pImpl->m_xPropSetInfo; } } // namespace ucbhelper |