summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-31 13:14:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-03-31 13:14:24 +0200
commitefb254ca039287de168cd3dabfe6578ba8ac06eb (patch)
tree606db902c9652d0cc445e28a75aa0f2b77f84527 /i18npool
parent9ad3eafb03672e4ad174765e4e939039c4d7df80 (diff)
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: If4b6022129e19cdfedfda9ddf92b907f67c3063b
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/registerservices/registerservices.cxx2
-rw-r--r--i18npool/source/search/textsearch.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/i18npool/source/registerservices/registerservices.cxx b/i18npool/source/registerservices/registerservices.cxx
index a38e9692033d..d76f8e9289cf 100644
--- a/i18npool/source/registerservices/registerservices.cxx
+++ b/i18npool/source/registerservices/registerservices.cxx
@@ -567,7 +567,7 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL i18npool_component_getFactory( const sal_Cha
void* pRet = NULL;
lang::XMultiServiceFactory* pServiceManager =
- reinterpret_cast< lang::XMultiServiceFactory* >( _pServiceManager );
+ static_cast< lang::XMultiServiceFactory* >( _pServiceManager );
uno::Reference< lang::XSingleServiceFactory > xFactory;
for( const InstancesArray* pArr = aInstances; pArr->pServiceNm; ++pArr )
diff --git a/i18npool/source/search/textsearch.cxx b/i18npool/source/search/textsearch.cxx
index 31314bb7a75b..0ff2639f6267 100644
--- a/i18npool/source/search/textsearch.cxx
+++ b/i18npool/source/search/textsearch.cxx
@@ -1117,7 +1117,7 @@ i18nsearch_component_getFactory( const sal_Char* sImplementationName,
void* pRet = NULL;
::com::sun::star::lang::XMultiServiceFactory* pServiceManager =
- reinterpret_cast< ::com::sun::star::lang::XMultiServiceFactory* >
+ static_cast< ::com::sun::star::lang::XMultiServiceFactory* >
( _pServiceManager );
::com::sun::star::uno::Reference<
::com::sun::star::lang::XSingleServiceFactory > xFactory;