summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-16 15:47:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-16 20:17:39 +0100
commit9bd827270646be509060ddb92be4eae20b277b91 (patch)
treef68cb9b3296620ba15fc0efa57787176374abe80 /unotools
parent1607033e581ee1fc4aab5564cbf8fa89d7094ec7 (diff)
loplugin:referencecasting in UnoControls..unoxml
Change-Id: I42f216b6115be693a4e57d70f6cbbf11b62ec185 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110998 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/confignode.cxx2
-rw-r--r--unotools/source/misc/closeveto.cxx4
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.cxx2
3 files changed, 4 insertions, 4 deletions
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<XComponentContext> & 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<XInterface> xInt(ref.get());
+ Reference<XInterface> xInt(ref);
xRet.set(xInt,UNO_QUERY);
}
}