summaryrefslogtreecommitdiff
path: root/ucb/source/core/ucbcmds.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-09 13:59:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-12 07:37:24 +0100
commit2f5868c4309d49ad495e0763b5b57d1f7f98e377 (patch)
treeba498138c67436ce30b5d9585353c50a1c5020bf /ucb/source/core/ucbcmds.cxx
parentcb34e6083cdc82333d64ad9224e0d25e895d1dae (diff)
loplugin:redundantfcast look for redundant copies in return statements
Change-Id: I5f416c865dfe1c36018784246a8007452eb42008 Reviewed-on: https://gerrit.libreoffice.org/50996 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/core/ucbcmds.cxx')
-rw-r--r--ucb/source/core/ucbcmds.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/ucb/source/core/ucbcmds.cxx b/ucb/source/core/ucbcmds.cxx
index bcedf21be3d6..9bfcd10883e2 100644
--- a/ucb/source/core/ucbcmds.cxx
+++ b/ucb/source/core/ucbcmds.cxx
@@ -252,7 +252,7 @@ CommandProcessorInfo::getCommandInfoByName( const OUString& Name )
for ( sal_Int32 n = 0; n < m_pInfo->getLength(); ++n )
{
if ( (*m_pInfo)[ n ].Name == Name )
- return ucb::CommandInfo( (*m_pInfo)[ n ] );
+ return (*m_pInfo)[ n ];
}
throw ucb::UnsupportedCommandException();
@@ -266,7 +266,7 @@ CommandProcessorInfo::getCommandInfoByHandle( sal_Int32 Handle )
for ( sal_Int32 n = 0; n < m_pInfo->getLength(); ++n )
{
if ( (*m_pInfo)[ n ].Handle == Handle )
- return ucb::CommandInfo( (*m_pInfo)[ n ] );
+ return (*m_pInfo)[ n ];
}
throw ucb::UnsupportedCommandException();