From 9bd827270646be509060ddb92be4eae20b277b91 Mon Sep 17 00:00:00 2001 From: Noel Date: Tue, 16 Feb 2021 15:47:57 +0200 Subject: loplugin:referencecasting in UnoControls..unoxml Change-Id: I42f216b6115be693a4e57d70f6cbbf11b62ec185 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110998 Tested-by: Jenkins Reviewed-by: Noel Grandin --- unotools/source/config/confignode.cxx | 2 +- unotools/source/misc/closeveto.cxx | 4 ++-- unotools/source/ucbhelper/ucblockbytes.cxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'unotools') diff --git a/unotools/source/config/confignode.cxx b/unotools/source/config/confignode.cxx index 7c604d1067dc..8c6b21000fae 100644 --- a/unotools/source/config/confignode.cxx +++ b/unotools/source/config/confignode.cxx @@ -490,7 +490,7 @@ namespace utl OConfigurationTreeRoot::OConfigurationTreeRoot( const Reference & i_rContext, const OUString& i_rNodePath, const bool i_bUpdatable ) :OConfigurationNode( lcl_createConfigurationRoot( lcl_getConfigProvider( i_rContext ), - i_rNodePath, i_bUpdatable, -1 ).get() ) + i_rNodePath, i_bUpdatable, -1 ) ) ,m_xCommitter() { if ( i_bUpdatable ) diff --git a/unotools/source/misc/closeveto.cxx b/unotools/source/misc/closeveto.cxx index bf2cb83829b6..02e5dc5faaea 100644 --- a/unotools/source/misc/closeveto.cxx +++ b/unotools/source/misc/closeveto.cxx @@ -105,7 +105,7 @@ namespace utl ENSURE_OR_RETURN_VOID( i_data.xCloseable.is(), "CloseVeto: the component is not closeable!" ); i_data.pListener = new CloseListener_Impl(hasOwnership); - i_data.xCloseable->addCloseListener( i_data.pListener.get() ); + i_data.xCloseable->addCloseListener( i_data.pListener ); } void lcl_deinit( CloseVeto_Data const & i_data ) @@ -113,7 +113,7 @@ namespace utl if ( !i_data.xCloseable.is() ) return; - i_data.xCloseable->removeCloseListener( i_data.pListener.get() ); + i_data.xCloseable->removeCloseListener( i_data.pListener ); if ( i_data.pListener->hasOwnership() ) { try diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index 5074989d6083..3748b4a8ee80 100644 --- a/unotools/source/ucbhelper/ucblockbytes.cxx +++ b/unotools/source/ucbhelper/ucblockbytes.cxx @@ -751,7 +751,7 @@ static bool UCBOpenContentSync( rtl::Reference< ucbhelper::InteractionContinuation > ref = ir->getSelection(); if(ref.is()) { - Reference xInt(ref.get()); + Reference xInt(ref); xRet.set(xInt,UNO_QUERY); } } -- cgit