Kaydet (Commit) efb254ca authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Reduce to static_cast any reinterpret_cast from void pointers

Change-Id: If4b6022129e19cdfedfda9ddf92b907f67c3063b
üst 9ad3eafb
...@@ -567,7 +567,7 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL i18npool_component_getFactory( const sal_Cha ...@@ -567,7 +567,7 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL i18npool_component_getFactory( const sal_Cha
void* pRet = NULL; void* pRet = NULL;
lang::XMultiServiceFactory* pServiceManager = lang::XMultiServiceFactory* pServiceManager =
reinterpret_cast< lang::XMultiServiceFactory* >( _pServiceManager ); static_cast< lang::XMultiServiceFactory* >( _pServiceManager );
uno::Reference< lang::XSingleServiceFactory > xFactory; uno::Reference< lang::XSingleServiceFactory > xFactory;
for( const InstancesArray* pArr = aInstances; pArr->pServiceNm; ++pArr ) for( const InstancesArray* pArr = aInstances; pArr->pServiceNm; ++pArr )
......
...@@ -1117,7 +1117,7 @@ i18nsearch_component_getFactory( const sal_Char* sImplementationName, ...@@ -1117,7 +1117,7 @@ i18nsearch_component_getFactory( const sal_Char* sImplementationName,
void* pRet = NULL; void* pRet = NULL;
::com::sun::star::lang::XMultiServiceFactory* pServiceManager = ::com::sun::star::lang::XMultiServiceFactory* pServiceManager =
reinterpret_cast< ::com::sun::star::lang::XMultiServiceFactory* > static_cast< ::com::sun::star::lang::XMultiServiceFactory* >
( _pServiceManager ); ( _pServiceManager );
::com::sun::star::uno::Reference< ::com::sun::star::uno::Reference<
::com::sun::star::lang::XSingleServiceFactory > xFactory; ::com::sun::star::lang::XSingleServiceFactory > xFactory;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment