summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-07-02 16:07:07 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-07-02 16:10:39 +0200
commitbe8d4a5d8aa711e8eb9265fd38d17c8290770a0e (patch)
tree6d1f2bf33a823cfde558b3eff2a5a80d1156e157 /i18npool
parent80a1a2599e04142683d2286d0e32d0e13fb45de3 (diff)
-fsanitize=function
Change-Id: I29d648c45471e6d3503922ff00f7cd6491bb88f3
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/breakiterator/xdictionary.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/i18npool/source/breakiterator/xdictionary.cxx b/i18npool/source/breakiterator/xdictionary.cxx
index ddf6f201cb28..1067e33bcecc 100644
--- a/i18npool/source/breakiterator/xdictionary.cxx
+++ b/i18npool/source/breakiterator/xdictionary.cxx
@@ -169,17 +169,17 @@ void xdictionary::initDictionaryData(const sal_Char *pLang)
aBuf.appendAscii( "dict_" ).appendAscii( pLang ).appendAscii( SAL_DLLEXTENSION );
aEntry.mhModule = osl_loadModuleRelative( &thisModule, aBuf.makeStringAndClear().pData, SAL_LOADMODULE_DEFAULT );
if( aEntry.mhModule ) {
- sal_IntPtr (*func)();
- func = (sal_IntPtr(*)()) osl_getFunctionSymbol( aEntry.mhModule, OUString("getExistMark").pData );
- aEntry.maData.existMark = (sal_uInt8*) (*func)();
- func = (sal_IntPtr(*)()) osl_getFunctionSymbol( aEntry.mhModule, OUString("getIndex1").pData );
- aEntry.maData.index1 = (sal_Int16*) (*func)();
- func = (sal_IntPtr(*)()) osl_getFunctionSymbol( aEntry.mhModule, OUString("getIndex2").pData );
- aEntry.maData.index2 = (sal_Int32*) (*func)();
- func = (sal_IntPtr(*)()) osl_getFunctionSymbol( aEntry.mhModule, OUString("getLenArray").pData );
- aEntry.maData.lenArray = (sal_Int32*) (*func)();
- func = (sal_IntPtr(*)()) osl_getFunctionSymbol( aEntry.mhModule, OUString("getDataArea").pData );
- aEntry.maData.dataArea = (sal_Unicode*) (*func)();
+ oslGenericFunction func;
+ func = osl_getAsciiFunctionSymbol( aEntry.mhModule, "getExistMark" );
+ aEntry.maData.existMark = ((sal_uInt8 const * (*)()) func)();
+ func = osl_getAsciiFunctionSymbol( aEntry.mhModule, "getIndex1" );
+ aEntry.maData.index1 = ((sal_Int16 const * (*)()) func)();
+ func = osl_getAsciiFunctionSymbol( aEntry.mhModule, "getIndex2" );
+ aEntry.maData.index2 = ((sal_Int32 const * (*)()) func)();
+ func = osl_getAsciiFunctionSymbol( aEntry.mhModule, "getLenArray" );
+ aEntry.maData.lenArray = ((sal_Int32 const * (*)()) func)();
+ func = osl_getAsciiFunctionSymbol( aEntry.mhModule, "getDataArea" );
+ aEntry.maData.dataArea = ((sal_Unicode const * (*)()) func)();
}
data = aEntry.maData;