diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:05:03 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:05:03 +0100 |
commit | 2c6f5a5b683dd77017f16725479ae27cea3bd72d (patch) | |
tree | 354e851a4d1381bcdf77f773ab8ce4a5edf69f95 /i18npool/source/transliteration | |
parent | ac37cb32df769c669d51639b12e6a45dc3962cf7 (diff) |
More loplugin:cstylecast: i18npool
Change-Id: Iafdc3593b7136f24e741dc63e3c46344636154eb
Diffstat (limited to 'i18npool/source/transliteration')
-rw-r--r-- | i18npool/source/transliteration/transliterationImpl.cxx | 10 | ||||
-rw-r--r-- | i18npool/source/transliteration/transliteration_caseignore.cxx | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/i18npool/source/transliteration/transliterationImpl.cxx b/i18npool/source/transliteration/transliterationImpl.cxx index 7209a9ccd48b..d4dc66a4de1e 100644 --- a/i18npool/source/transliteration/transliterationImpl.cxx +++ b/i18npool/source/transliteration/transliterationImpl.cxx @@ -48,7 +48,7 @@ namespace i18npool { {TransliterationModules_##name, TransliterationModulesNew_##name, #name} #define TmItem2( name ) \ - {(TransliterationModules)0, TransliterationModulesNew_##name, #name} + {TransliterationModules(0), TransliterationModulesNew_##name, #name} // Ignore Module list static struct TMlist { @@ -131,7 +131,7 @@ static struct TMlist { // TmItem2 (NumToCharEstern_Arabic_Indic),// () (68) // TmItem2 (NumToCharIndic), // () (69) // TmItem2 (NumToCharThai), // () (70) - {(TransliterationModules)0, (TransliterationModulesNew)0, nullptr} + {TransliterationModules(0), TransliterationModulesNew(0), nullptr} }; // Constructor/Destructor @@ -199,12 +199,12 @@ TransliterationImpl::loadModule( TransliterationModules modType, const Locale& r numCascade++; } // additional transliterations from TranslationModuleExtra (we cannot extend TransliterationModule) - if (bool(modType & (TransliterationModules)TransliterationModulesExtra::IGNORE_DIACRITICS_CTL)) + if (bool(modType & TransliterationModules(TransliterationModulesExtra::IGNORE_DIACRITICS_CTL))) { if (loadModuleByName("ignoreDiacritics_CTL", bodyCascade[numCascade], rLocale)) numCascade++; } - if (bool(modType & (TransliterationModules)TransliterationModulesExtra::IGNORE_KASHIDA_CTL)) + if (bool(modType & TransliterationModules(TransliterationModulesExtra::IGNORE_KASHIDA_CTL))) if (loadModuleByName("ignoreKashida_CTL", bodyCascade[numCascade], rLocale)) numCascade++; @@ -617,7 +617,7 @@ TransliterationImpl::loadModuleByName( const OUString& implName, OUString cname = TRLT_IMPLNAME_PREFIX + implName; loadBody(cname, body); if (body.is()) { - body->loadModule((TransliterationModules)0, rLocale); // toUpper/toLoad need rLocale + body->loadModule(TransliterationModules(0), rLocale); // toUpper/toLoad need rLocale // if the module is ignore case/kana/width, load caseignore for equals/compareString mothed for (sal_Int16 i = 0; i < 3; i++) { diff --git a/i18npool/source/transliteration/transliteration_caseignore.cxx b/i18npool/source/transliteration/transliteration_caseignore.cxx index 8ef525b6e698..30d02a8d0797 100644 --- a/i18npool/source/transliteration/transliteration_caseignore.cxx +++ b/i18npool/source/transliteration/transliteration_caseignore.cxx @@ -43,7 +43,7 @@ Transliteration_caseignore::Transliteration_caseignore() void SAL_CALL Transliteration_caseignore::loadModule( TransliterationModules modName, const Locale& rLocale ) { - moduleLoaded |= (TransliterationFlags)modName; + moduleLoaded |= static_cast<TransliterationFlags>(modName); aLocale = rLocale; } @@ -63,8 +63,8 @@ Transliteration_caseignore::transliterateRange( const OUString& str1, const OUSt static rtl::Reference< Transliteration_u2l > u2l(new Transliteration_u2l); static rtl::Reference< Transliteration_l2u > l2u(new Transliteration_l2u); - u2l->loadModule((TransliterationModules)0, aLocale); - l2u->loadModule((TransliterationModules)0, aLocale); + u2l->loadModule(TransliterationModules(0), aLocale); + l2u->loadModule(TransliterationModules(0), aLocale); OUString l1 = u2l->transliterateString2String(str1, 0, str1.getLength()); OUString u1 = l2u->transliterateString2String(str1, 0, str1.getLength()); |