From ac37cb32df769c669d51639b12e6a45dc3962cf7 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 15 Jan 2018 09:04:56 +0100 Subject: More loplugin:cstylecast: i18nutil Change-Id: Ibdfec3e35c6424fdd4d9b15ff4f4d7441a5f7e36 --- i18nutil/source/utility/unicode.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'i18nutil/source/utility/unicode.cxx') diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx index e32fa1318bcb..6d90b15ca42e 100644 --- a/i18nutil/source/utility/unicode.cxx +++ b/i18nutil/source/utility/unicode.cxx @@ -41,7 +41,7 @@ T getScriptType( const sal_Unicode ch, const L* typeList, T unknownType ) { sal_Int16 i = 0; css::i18n::UnicodeScript type = typeList[0].to; - while (type < UnicodeScript_kScriptCount && ch > UnicodeScriptType[(int)type][UnicodeScriptTypeTo]) { + while (type < UnicodeScript_kScriptCount && ch > UnicodeScriptType[static_cast(type)][UnicodeScriptTypeTo]) { type = typeList[++i].to; } @@ -57,12 +57,12 @@ unicode::getUnicodeScriptType( const sal_Unicode ch, const ScriptTypeList* typeL sal_Unicode unicode::getUnicodeScriptStart( UnicodeScript type) { - return UnicodeScriptType[(int)type][UnicodeScriptTypeFrom]; + return UnicodeScriptType[static_cast(type)][UnicodeScriptTypeFrom]; } sal_Unicode unicode::getUnicodeScriptEnd( UnicodeScript type) { - return UnicodeScriptType[(int)type][UnicodeScriptTypeTo]; + return UnicodeScriptType[static_cast(type)][UnicodeScriptTypeTo]; } sal_Int16 -- cgit