summaryrefslogtreecommitdiffstats
path: root/i18npool/source/collator
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-17 18:47:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-20 09:06:48 +0100
commite3ec05960a12d3598fefce8bb2e1c04457de90b6 (patch)
treee5bb1f5ba1f3d6f37462f5420251db96bcbcb44b /i18npool/source/collator
parentSome more loplugin:cstylecast: hwpfilter (diff)
downloadcore-e3ec05960a12d3598fefce8bb2e1c04457de90b6.tar.gz
core-e3ec05960a12d3598fefce8bb2e1c04457de90b6.zip
Some more loplugin:cstylecast: i18npool
Change-Id: Idbb928b2898bc6b2b5bfe3bdbfde0b81d68e4473
Diffstat (limited to 'i18npool/source/collator')
-rw-r--r--i18npool/source/collator/collator_unicode.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/i18npool/source/collator/collator_unicode.cxx b/i18npool/source/collator/collator_unicode.cxx
index 457f266e4985..ef425738832a 100644
--- a/i18npool/source/collator/collator_unicode.cxx
+++ b/i18npool/source/collator/collator_unicode.cxx
@@ -157,17 +157,17 @@ Collator_Unicode::loadCollatorAlgorithm(const OUString& rAlgorithm, const lang::
OUString funclen_base = func_base + "_length";
if (OUString("TW HK MO").indexOf(rLocale.Country) >= 0)
{
- func = (const sal_uInt8* (*)()) osl_getFunctionSymbol(hModule,
- OUString(func_base + "TW_" + rAlgorithm).pData);
- funclen = (size_t (*)()) osl_getFunctionSymbol(hModule,
- OUString(funclen_base + "TW_" + rAlgorithm).pData);
+ func = reinterpret_cast<const sal_uInt8* (*)()>(osl_getFunctionSymbol(hModule,
+ OUString(func_base + "TW_" + rAlgorithm).pData));
+ funclen = reinterpret_cast<size_t (*)()>(osl_getFunctionSymbol(hModule,
+ OUString(funclen_base + "TW_" + rAlgorithm).pData));
}
if (!func)
{
- func = (const sal_uInt8* (*)()) osl_getFunctionSymbol(
- hModule, OUString(func_base + rAlgorithm).pData);
- funclen = (size_t (*)()) osl_getFunctionSymbol(
- hModule, OUString(funclen_base + rAlgorithm).pData);
+ func = reinterpret_cast<const sal_uInt8* (*)()>(osl_getFunctionSymbol(
+ hModule, OUString(func_base + rAlgorithm).pData));
+ funclen = reinterpret_cast<size_t (*)()>(osl_getFunctionSymbol(
+ hModule, OUString(funclen_base + rAlgorithm).pData));
}
} else {
if ( rLocale.Language == "ja" ) {
@@ -183,8 +183,8 @@ Collator_Unicode::loadCollatorAlgorithm(const OUString& rAlgorithm, const lang::
}
OUString func_base = aBuf.makeStringAndClear();
OUString funclen_base = func_base + "_length";
- func = (const sal_uInt8* (*)()) osl_getFunctionSymbol(hModule, func_base.pData);
- funclen = (size_t (*)()) osl_getFunctionSymbol(hModule, funclen_base.pData);
+ func = reinterpret_cast<const sal_uInt8* (*)()>(osl_getFunctionSymbol(hModule, func_base.pData));
+ funclen = reinterpret_cast<size_t (*)()>(osl_getFunctionSymbol(hModule, funclen_base.pData));
}
}
#else