diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-17 18:47:52 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 09:06:48 +0100 |
commit | e3ec05960a12d3598fefce8bb2e1c04457de90b6 (patch) | |
tree | e5bb1f5ba1f3d6f37462f5420251db96bcbcb44b /i18npool/source/indexentry | |
parent | 552efce640f31130d8e598b1381038b565c81584 (diff) |
Some more loplugin:cstylecast: i18npool
Change-Id: Idbb928b2898bc6b2b5bfe3bdbfde0b81d68e4473
Diffstat (limited to 'i18npool/source/indexentry')
-rw-r--r-- | i18npool/source/indexentry/indexentrysupplier_asian.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/i18npool/source/indexentry/indexentrysupplier_asian.cxx b/i18npool/source/indexentry/indexentrysupplier_asian.cxx index 4cb4d7e3c353..a41e8cb56a08 100644 --- a/i18npool/source/indexentry/indexentrysupplier_asian.cxx +++ b/i18npool/source/indexentry/indexentrysupplier_asian.cxx @@ -87,9 +87,9 @@ IndexEntrySupplier_asian::getIndexCharacter( const OUString& rIndexEntry, if (hModule) { OUString get("get_indexdata_"); if ( rLocale.Language == "zh" && OUString( "TW HK MO" ).indexOf(rLocale.Country) >= 0 ) - func=(sal_uInt16** (*)(sal_Int16*))osl_getFunctionSymbol(hModule, OUString(get+rLocale.Language+"_TW_"+rAlgorithm).pData); + func=reinterpret_cast<sal_uInt16** (*)(sal_Int16*)>(osl_getFunctionSymbol(hModule, OUString(get+rLocale.Language+"_TW_"+rAlgorithm).pData)); if (!func) - func=(sal_uInt16** (*)(sal_Int16*))osl_getFunctionSymbol(hModule, OUString(get+rLocale.Language+"_"+rAlgorithm).pData); + func=reinterpret_cast<sal_uInt16** (*)(sal_Int16*)>(osl_getFunctionSymbol(hModule, OUString(get+rLocale.Language+"_"+rAlgorithm).pData)); } #else if ( rLocale.Language == "zh" && OUString( "TW HK MO" ).indexOf(rLocale.Country) >= 0 ) { @@ -168,7 +168,7 @@ IndexEntrySupplier_asian::getPhoneticCandidate( const OUString& rIndexEntry, else if ( rLocale.Language == "ko" ) func_name="get_ko_phonetic"; if (func_name) - func=(sal_uInt16 **(*)(sal_Int16*))osl_getFunctionSymbol(hModule, OUString::createFromAscii(func_name).pData); + func=reinterpret_cast<sal_uInt16 **(*)(sal_Int16*)>(osl_getFunctionSymbol(hModule, OUString::createFromAscii(func_name).pData)); } #else if ( rLocale.Language == "zh" ) |