summaryrefslogtreecommitdiff
path: root/i18npool/source/indexentry
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/indexentry
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/indexentry')
-rw-r--r--i18npool/source/indexentry/indexentrysupplier_asian.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/i18npool/source/indexentry/indexentrysupplier_asian.cxx b/i18npool/source/indexentry/indexentrysupplier_asian.cxx
index b535fd934884..e49e64f805a1 100644
--- a/i18npool/source/indexentry/indexentrysupplier_asian.cxx
+++ b/i18npool/source/indexentry/indexentrysupplier_asian.cxx
@@ -117,7 +117,7 @@ IndexEntrySupplier_asian::getIndexCharacter( const OUString& rIndexEntry,
if (func) {
sal_Int16 max_index;
sal_uInt16** idx=func(&max_index);
- if (((sal_Int16)(ch >> 8)) <= max_index) {
+ if (static_cast<sal_Int16>(ch >> 8) <= max_index) {
sal_uInt16 address=idx[0][ch >> 8];
if (address != 0xFFFF) {
address=idx[1][address+(ch & 0xFF)];
@@ -185,7 +185,7 @@ IndexEntrySupplier_asian::getPhoneticCandidate( const OUString& rIndexEntry,
sal_uInt16** idx=func(&max_index);
for (sal_Int32 i=0,j=0; i < rIndexEntry.getLength(); i=j) {
sal_uInt32 ch = rIndexEntry.iterateCodePoints(&j);
- if (((sal_Int16)(ch>>8)) <= max_index) {
+ if (static_cast<sal_Int16>(ch>>8) <= max_index) {
sal_uInt16 address = idx[0][ch>>8];
if (address != 0xFFFF) {
address = idx[1][address + (ch & 0xFF)];