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

Reduce to static_cast any reinterpret_cast from void pointers

Change-Id: Iad5d2858976ed789823aaac3aa7f2937233f1dfc
üst b06866b6
...@@ -42,21 +42,21 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL embobj_component_getFactory( ...@@ -42,21 +42,21 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL embobj_component_getFactory(
{ {
if ( aImplName.equals( OOoEmbeddedObjectFactory::impl_staticGetImplementationName() ) ) 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_staticGetImplementationName(),
OOoEmbeddedObjectFactory::impl_staticCreateSelfInstance, OOoEmbeddedObjectFactory::impl_staticCreateSelfInstance,
OOoEmbeddedObjectFactory::impl_staticGetSupportedServiceNames() ); OOoEmbeddedObjectFactory::impl_staticGetSupportedServiceNames() );
} }
else if ( aImplName.equals( OOoSpecialEmbeddedObjectFactory::impl_staticGetImplementationName() ) ) 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_staticGetImplementationName(),
OOoSpecialEmbeddedObjectFactory::impl_staticCreateSelfInstance, OOoSpecialEmbeddedObjectFactory::impl_staticCreateSelfInstance,
OOoSpecialEmbeddedObjectFactory::impl_staticGetSupportedServiceNames() ); OOoSpecialEmbeddedObjectFactory::impl_staticGetSupportedServiceNames() );
} }
else if ( aImplName.equals( UNOEmbeddedObjectCreator::impl_staticGetImplementationName() ) ) 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_staticGetImplementationName(),
UNOEmbeddedObjectCreator::impl_staticCreateSelfInstance, UNOEmbeddedObjectCreator::impl_staticCreateSelfInstance,
UNOEmbeddedObjectCreator::impl_staticGetSupportedServiceNames() ); UNOEmbeddedObjectCreator::impl_staticGetSupportedServiceNames() );
......
...@@ -45,7 +45,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL emboleobj_component_getFactory( ...@@ -45,7 +45,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL emboleobj_component_getFactory(
{ {
if ( aImplName.equals( OleEmbeddedObjectFactory::impl_staticGetImplementationName() ) ) 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_staticGetImplementationName(),
OleEmbeddedObjectFactory::impl_staticCreateSelfInstance, OleEmbeddedObjectFactory::impl_staticCreateSelfInstance,
OleEmbeddedObjectFactory::impl_staticGetSupportedServiceNames() ); OleEmbeddedObjectFactory::impl_staticGetSupportedServiceNames() );
......
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