Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: Iad5d2858976ed789823aaac3aa7f2937233f1dfc
This commit is contained in:
@@ -42,21 +42,21 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL embobj_component_getFactory(
|
||||
{
|
||||
if ( aImplName.equals( OOoEmbeddedObjectFactory::impl_staticGetImplementationName() ) )
|
||||
{
|
||||
xFactory= ::cppu::createOneInstanceFactory( reinterpret_cast< lang::XMultiServiceFactory*>( pServiceManager ),
|
||||
xFactory= ::cppu::createOneInstanceFactory( static_cast< lang::XMultiServiceFactory*>( pServiceManager ),
|
||||
OOoEmbeddedObjectFactory::impl_staticGetImplementationName(),
|
||||
OOoEmbeddedObjectFactory::impl_staticCreateSelfInstance,
|
||||
OOoEmbeddedObjectFactory::impl_staticGetSupportedServiceNames() );
|
||||
}
|
||||
else if ( aImplName.equals( OOoSpecialEmbeddedObjectFactory::impl_staticGetImplementationName() ) )
|
||||
{
|
||||
xFactory= ::cppu::createOneInstanceFactory( reinterpret_cast< lang::XMultiServiceFactory*>( pServiceManager ),
|
||||
xFactory= ::cppu::createOneInstanceFactory( static_cast< lang::XMultiServiceFactory*>( pServiceManager ),
|
||||
OOoSpecialEmbeddedObjectFactory::impl_staticGetImplementationName(),
|
||||
OOoSpecialEmbeddedObjectFactory::impl_staticCreateSelfInstance,
|
||||
OOoSpecialEmbeddedObjectFactory::impl_staticGetSupportedServiceNames() );
|
||||
}
|
||||
else if ( aImplName.equals( UNOEmbeddedObjectCreator::impl_staticGetImplementationName() ) )
|
||||
{
|
||||
xFactory= ::cppu::createOneInstanceFactory( reinterpret_cast< lang::XMultiServiceFactory*>( pServiceManager ),
|
||||
xFactory= ::cppu::createOneInstanceFactory( static_cast< lang::XMultiServiceFactory*>( pServiceManager ),
|
||||
UNOEmbeddedObjectCreator::impl_staticGetImplementationName(),
|
||||
UNOEmbeddedObjectCreator::impl_staticCreateSelfInstance,
|
||||
UNOEmbeddedObjectCreator::impl_staticGetSupportedServiceNames() );
|
||||
|
@@ -45,7 +45,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL emboleobj_component_getFactory(
|
||||
{
|
||||
if ( aImplName.equals( OleEmbeddedObjectFactory::impl_staticGetImplementationName() ) )
|
||||
{
|
||||
xFactory= ::cppu::createOneInstanceFactory( reinterpret_cast< lang::XMultiServiceFactory*>( pServiceManager ),
|
||||
xFactory= ::cppu::createOneInstanceFactory( static_cast< lang::XMultiServiceFactory*>( pServiceManager ),
|
||||
OleEmbeddedObjectFactory::impl_staticGetImplementationName(),
|
||||
OleEmbeddedObjectFactory::impl_staticCreateSelfInstance,
|
||||
OleEmbeddedObjectFactory::impl_staticGetSupportedServiceNames() );
|
||||
|
Reference in New Issue
Block a user