summaryrefslogtreecommitdiff
path: root/i18npool/source/ordinalsuffix
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:22:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:22:23 +0100
commit726f3ed546f5b9ac24a064e7e358138ef684b062 (patch)
treef2ec66ecede60129df7427a55426a7bd57a8a1c8 /i18npool/source/ordinalsuffix
parentb6c49c46cfde21ad92cd007bdb3531ff0c4e0cb0 (diff)
More loplugin:cstylecast: i18npool
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I5ca5f27425c150f58e5ec3f2392dda43a857fc33
Diffstat (limited to 'i18npool/source/ordinalsuffix')
-rw-r--r--i18npool/source/ordinalsuffix/ordinalsuffix.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
index b9efd51e1176..1f50ff107d19 100644
--- a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
+++ b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
@@ -84,7 +84,7 @@ uno::Sequence< OUString > SAL_CALL OrdinalSuffixService::getOrdinalSuffix( sal_I
return retValue;
icu::UnicodeString sFormatWithNoOrdinal;
- icu::Formattable ftmNumber((int32_t)nNumber);
+ icu::Formattable ftmNumber(static_cast<int32_t>(nNumber));
icu::FieldPosition icuPosA;
xNumberFormat->format(ftmNumber, sFormatWithNoOrdinal, icuPosA, nCode);
if (!U_SUCCESS(nCode))
@@ -102,7 +102,7 @@ uno::Sequence< OUString > SAL_CALL OrdinalSuffixService::getOrdinalSuffix( sal_I
// format the string
icu::UnicodeString sFormatWithOrdinal;
icu::FieldPosition icuPosB;
- formatter.format((int32_t)nNumber, ruleSet, sFormatWithOrdinal, icuPosB, nCode);
+ formatter.format(static_cast<int32_t>(nNumber), ruleSet, sFormatWithOrdinal, icuPosB, nCode);
if (!U_SUCCESS(nCode))
continue;