Reduce to static_cast any reinterpret_cast from void pointers

Change-Id: I47be8a3e4be0a19fb476ab551e8bf394244a66a4
This commit is contained in:
Stephan Bergmann
2015-03-31 13:16:04 +02:00
parent bbaa7def08
commit 7956c4c517
3 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL analysis_component_getFactory(
if( pServiceManager && OUString::createFromAscii( pImplName ) == AnalysisAddIn::getImplementationName_Static() )
{
uno::Reference< lang::XSingleServiceFactory > xFactory( cppu::createOneInstanceFactory(
reinterpret_cast< lang::XMultiServiceFactory* >( pServiceManager ),
static_cast< lang::XMultiServiceFactory* >( pServiceManager ),
AnalysisAddIn::getImplementationName_Static(),
AnalysisAddIn_CreateInstance,
AnalysisAddIn::getSupportedServiceNames_Static() ) );

View File

@@ -180,7 +180,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL date_component_getFactory(
OUString::createFromAscii( pImplName ) == ScaDateAddIn::getImplementationName_Static() )
{
uno::Reference< lang::XSingleServiceFactory > xFactory( cppu::createOneInstanceFactory(
reinterpret_cast< lang::XMultiServiceFactory* >( pServiceManager ),
static_cast< lang::XMultiServiceFactory* >( pServiceManager ),
ScaDateAddIn::getImplementationName_Static(),
ScaDateAddIn_CreateInstance,
ScaDateAddIn::getSupportedServiceNames_Static() ) );

View File

@@ -185,7 +185,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL pricing_component_getFactory(
OUString::createFromAscii( pImplName ) == ScaPricingAddIn::getImplementationName_Static() )
{
uno::Reference< lang::XSingleServiceFactory > xFactory( cppu::createOneInstanceFactory(
reinterpret_cast< lang::XMultiServiceFactory* >( pServiceManager ),
static_cast< lang::XMultiServiceFactory* >( pServiceManager ),
ScaPricingAddIn::getImplementationName_Static(),
ScaPricingAddIn_CreateInstance,
ScaPricingAddIn::getSupportedServiceNames_Static() ) );