summaryrefslogtreecommitdiff
path: root/i18nutil/source/utility/unicode.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:04:56 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:04:56 +0100
commitac37cb32df769c669d51639b12e6a45dc3962cf7 (patch)
treec9e563af79826da05545849f8e66bdd62289290d /i18nutil/source/utility/unicode.cxx
parente99d632b10ac1ba46ee6e7a0723f331a25ec9184 (diff)
More loplugin:cstylecast: i18nutil
Change-Id: Ibdfec3e35c6424fdd4d9b15ff4f4d7441a5f7e36
Diffstat (limited to 'i18nutil/source/utility/unicode.cxx')
-rw-r--r--i18nutil/source/utility/unicode.cxx6
1 files changed, 3 insertions, 3 deletions
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<int>(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<int>(type)][UnicodeScriptTypeFrom];
}
sal_Unicode
unicode::getUnicodeScriptEnd( UnicodeScript type) {
- return UnicodeScriptType[(int)type][UnicodeScriptTypeTo];
+ return UnicodeScriptType[static_cast<int>(type)][UnicodeScriptTypeTo];
}
sal_Int16