summaryrefslogtreecommitdiff
path: root/i18nutil
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 /i18nutil
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 'i18nutil')
-rw-r--r--i18nutil/source/utility/oneToOneMapping.cxx12
1 files changed, 6 insertions, 6 deletions
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;
}