Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I47be8a3e4be0a19fb476ab551e8bf394244a66a4
This commit is contained in:
@@ -49,7 +49,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL analysis_component_getFactory(
|
|||||||
if( pServiceManager && OUString::createFromAscii( pImplName ) == AnalysisAddIn::getImplementationName_Static() )
|
if( pServiceManager && OUString::createFromAscii( pImplName ) == AnalysisAddIn::getImplementationName_Static() )
|
||||||
{
|
{
|
||||||
uno::Reference< lang::XSingleServiceFactory > xFactory( cppu::createOneInstanceFactory(
|
uno::Reference< lang::XSingleServiceFactory > xFactory( cppu::createOneInstanceFactory(
|
||||||
reinterpret_cast< lang::XMultiServiceFactory* >( pServiceManager ),
|
static_cast< lang::XMultiServiceFactory* >( pServiceManager ),
|
||||||
AnalysisAddIn::getImplementationName_Static(),
|
AnalysisAddIn::getImplementationName_Static(),
|
||||||
AnalysisAddIn_CreateInstance,
|
AnalysisAddIn_CreateInstance,
|
||||||
AnalysisAddIn::getSupportedServiceNames_Static() ) );
|
AnalysisAddIn::getSupportedServiceNames_Static() ) );
|
||||||
|
@@ -180,7 +180,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL date_component_getFactory(
|
|||||||
OUString::createFromAscii( pImplName ) == ScaDateAddIn::getImplementationName_Static() )
|
OUString::createFromAscii( pImplName ) == ScaDateAddIn::getImplementationName_Static() )
|
||||||
{
|
{
|
||||||
uno::Reference< lang::XSingleServiceFactory > xFactory( cppu::createOneInstanceFactory(
|
uno::Reference< lang::XSingleServiceFactory > xFactory( cppu::createOneInstanceFactory(
|
||||||
reinterpret_cast< lang::XMultiServiceFactory* >( pServiceManager ),
|
static_cast< lang::XMultiServiceFactory* >( pServiceManager ),
|
||||||
ScaDateAddIn::getImplementationName_Static(),
|
ScaDateAddIn::getImplementationName_Static(),
|
||||||
ScaDateAddIn_CreateInstance,
|
ScaDateAddIn_CreateInstance,
|
||||||
ScaDateAddIn::getSupportedServiceNames_Static() ) );
|
ScaDateAddIn::getSupportedServiceNames_Static() ) );
|
||||||
|
@@ -185,7 +185,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL pricing_component_getFactory(
|
|||||||
OUString::createFromAscii( pImplName ) == ScaPricingAddIn::getImplementationName_Static() )
|
OUString::createFromAscii( pImplName ) == ScaPricingAddIn::getImplementationName_Static() )
|
||||||
{
|
{
|
||||||
uno::Reference< lang::XSingleServiceFactory > xFactory( cppu::createOneInstanceFactory(
|
uno::Reference< lang::XSingleServiceFactory > xFactory( cppu::createOneInstanceFactory(
|
||||||
reinterpret_cast< lang::XMultiServiceFactory* >( pServiceManager ),
|
static_cast< lang::XMultiServiceFactory* >( pServiceManager ),
|
||||||
ScaPricingAddIn::getImplementationName_Static(),
|
ScaPricingAddIn::getImplementationName_Static(),
|
||||||
ScaPricingAddIn_CreateInstance,
|
ScaPricingAddIn_CreateInstance,
|
||||||
ScaPricingAddIn::getSupportedServiceNames_Static() ) );
|
ScaPricingAddIn::getSupportedServiceNames_Static() ) );
|
||||||
|
Reference in New Issue
Block a user