From 2f5868c4309d49ad495e0763b5b57d1f7f98e377 Mon Sep 17 00:00:00 2001 From: Noel Grandin <noel.grandin@collabora.co.uk> Date: Fri, 9 Mar 2018 13:59:52 +0200 Subject: 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> --- i18nutil/source/utility/oneToOneMapping.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'i18nutil') diff --git a/i18nutil/source/utility/oneToOneMapping.cxx b/i18nutil/source/utility/oneToOneMapping.cxx index 2488f7950fae..388722bfc7b5 100644 --- a/i18nutil/source/utility/oneToOneMapping.cxx +++ b/i18nutil/source/utility/oneToOneMapping.cxx @@ -49,11 +49,11 @@ sal_Unicode oneToOneMapping::find(const sal_Unicode nKey) const return mpTable[current].second; if( bottom > top ) - return sal_Unicode( nKey ); + return nKey; } } else - return sal_Unicode( nKey ); + return nKey; } oneToOneMappingWithFlag::oneToOneMappingWithFlag( UnicodePairWithFlag *rpTableWF, const size_t rnSize, const UnicodePairFlag rnFlag ) @@ -117,7 +117,7 @@ sal_Unicode oneToOneMappingWithFlag::find( const sal_Unicode nKey ) const mpIndex[high][low]->flag & mnFlag ) return mpIndex[high][low]->second; else - return sal_Unicode( nKey ); + return nKey; } else { @@ -136,16 +136,16 @@ sal_Unicode oneToOneMappingWithFlag::find( const sal_Unicode nKey ) const if( mpTableWF[current].flag & mnFlag ) return mpTableWF[current].second; else - return sal_Unicode( nKey ); + return nKey; } if( bottom > top ) - return sal_Unicode( nKey ); + return nKey; } } } else - return sal_Unicode( nKey ); + return nKey; } -- cgit