From bd482df17c3326e9bc6ed758df648c145dcbe394 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 31 Mar 2015 13:14:47 +0200 Subject: Reduce to static_cast any reinterpret_cast from void pointers Change-Id: I34dc9028a273b6a22395fe662dd071505989dc5c --- lingucomponent/source/hyphenator/hyphen/hreg.cxx | 2 +- lingucomponent/source/spellcheck/spell/sreg.cxx | 2 +- lingucomponent/source/thesaurus/libnth/ntreg.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lingucomponent/source/hyphenator/hyphen/hreg.cxx b/lingucomponent/source/hyphenator/hyphen/hreg.cxx index 493df8b8e552..7eb861741eba 100644 --- a/lingucomponent/source/hyphenator/hyphen/hreg.cxx +++ b/lingucomponent/source/hyphenator/hyphen/hreg.cxx @@ -36,7 +36,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL hyphen_component_getFactory( { void * pRet = Hyphenator_getFactory( pImplName, - reinterpret_cast< XMultiServiceFactory * >( pServiceManager ), + static_cast< XMultiServiceFactory * >( pServiceManager ), pRegistryKey ); return pRet; diff --git a/lingucomponent/source/spellcheck/spell/sreg.cxx b/lingucomponent/source/spellcheck/spell/sreg.cxx index e018a4a3c998..5fb211071e7e 100644 --- a/lingucomponent/source/spellcheck/spell/sreg.cxx +++ b/lingucomponent/source/spellcheck/spell/sreg.cxx @@ -37,7 +37,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL spell_component_getFactory( void * pRet = NULL; pRet = SpellChecker_getFactory( pImplName, - reinterpret_cast< XMultiServiceFactory * >( pServiceManager ), + static_cast< XMultiServiceFactory * >( pServiceManager ), pRegistryKey ); return pRet; diff --git a/lingucomponent/source/thesaurus/libnth/ntreg.cxx b/lingucomponent/source/thesaurus/libnth/ntreg.cxx index 4a6d2721636d..11f03388621d 100644 --- a/lingucomponent/source/thesaurus/libnth/ntreg.cxx +++ b/lingucomponent/source/thesaurus/libnth/ntreg.cxx @@ -36,7 +36,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL lnth_component_getFactory( { void * pRet = Thesaurus_getFactory( pImplName, - reinterpret_cast< XMultiServiceFactory * >( pServiceManager ), + static_cast< XMultiServiceFactory * >( pServiceManager ), pRegistryKey ); return pRet; -- cgit v1.2.3