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

Reduce to static_cast any reinterpret_cast from void pointers

Change-Id: I571893a8340ee0f4a0de393395b5eef7a4795451
üst 0da9460b
...@@ -44,7 +44,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svxcore_component_getFactory ( ...@@ -44,7 +44,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svxcore_component_getFactory (
if( ::svx::ExtrusionDepthController_getImplementationName().equalsAscii( pImplName ) ) if( ::svx::ExtrusionDepthController_getImplementationName().equalsAscii( pImplName ) )
{ {
xFactory = ::cppu::createSingleFactory( xFactory = ::cppu::createSingleFactory(
reinterpret_cast< XMultiServiceFactory * >( pServiceManager ), static_cast< XMultiServiceFactory * >( pServiceManager ),
::svx::ExtrusionDepthController_getImplementationName(), ::svx::ExtrusionDepthController_getImplementationName(),
::svx::ExtrusionDepthController_createInstance, ::svx::ExtrusionDepthController_createInstance,
::svx::ExtrusionDepthController_getSupportedServiceNames() ); ::svx::ExtrusionDepthController_getSupportedServiceNames() );
...@@ -52,7 +52,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svxcore_component_getFactory ( ...@@ -52,7 +52,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svxcore_component_getFactory (
else if( ::svx::ExtrusionDirectionControl_getImplementationName().equalsAscii( pImplName ) ) else if( ::svx::ExtrusionDirectionControl_getImplementationName().equalsAscii( pImplName ) )
{ {
xFactory = ::cppu::createSingleFactory( xFactory = ::cppu::createSingleFactory(
reinterpret_cast< XMultiServiceFactory * >( pServiceManager ), static_cast< XMultiServiceFactory * >( pServiceManager ),
::svx::ExtrusionDirectionControl_getImplementationName(), ::svx::ExtrusionDirectionControl_getImplementationName(),
::svx::ExtrusionDirectionControl_createInstance, ::svx::ExtrusionDirectionControl_createInstance,
::svx::ExtrusionDirectionControl_getSupportedServiceNames() ); ::svx::ExtrusionDirectionControl_getSupportedServiceNames() );
...@@ -60,7 +60,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svxcore_component_getFactory ( ...@@ -60,7 +60,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svxcore_component_getFactory (
else if( ::svx::ExtrusionLightingControl_getImplementationName().equalsAscii( pImplName ) ) else if( ::svx::ExtrusionLightingControl_getImplementationName().equalsAscii( pImplName ) )
{ {
xFactory = ::cppu::createSingleFactory( xFactory = ::cppu::createSingleFactory(
reinterpret_cast< XMultiServiceFactory * >( pServiceManager ), static_cast< XMultiServiceFactory * >( pServiceManager ),
::svx::ExtrusionLightingControl_getImplementationName(), ::svx::ExtrusionLightingControl_getImplementationName(),
::svx::ExtrusionLightingControl_createInstance, ::svx::ExtrusionLightingControl_createInstance,
::svx::ExtrusionLightingControl_getSupportedServiceNames() ); ::svx::ExtrusionLightingControl_getSupportedServiceNames() );
...@@ -68,7 +68,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svxcore_component_getFactory ( ...@@ -68,7 +68,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svxcore_component_getFactory (
else if( ::svx::ExtrusionSurfaceControl_getImplementationName().equalsAscii( pImplName ) ) else if( ::svx::ExtrusionSurfaceControl_getImplementationName().equalsAscii( pImplName ) )
{ {
xFactory = ::cppu::createSingleFactory( xFactory = ::cppu::createSingleFactory(
reinterpret_cast< XMultiServiceFactory * >( pServiceManager ), static_cast< XMultiServiceFactory * >( pServiceManager ),
::svx::ExtrusionSurfaceControl_getImplementationName(), ::svx::ExtrusionSurfaceControl_getImplementationName(),
::svx::ExtrusionSurfaceControl_createInstance, ::svx::ExtrusionSurfaceControl_createInstance,
::svx::ExtrusionSurfaceControl_getSupportedServiceNames() ); ::svx::ExtrusionSurfaceControl_getSupportedServiceNames() );
...@@ -76,7 +76,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svxcore_component_getFactory ( ...@@ -76,7 +76,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svxcore_component_getFactory (
else if( ::svx::FontworkAlignmentControl_getImplementationName().equalsAscii( pImplName ) ) else if( ::svx::FontworkAlignmentControl_getImplementationName().equalsAscii( pImplName ) )
{ {
xFactory = ::cppu::createSingleFactory( xFactory = ::cppu::createSingleFactory(
reinterpret_cast< XMultiServiceFactory * >( pServiceManager ), static_cast< XMultiServiceFactory * >( pServiceManager ),
::svx::FontworkAlignmentControl_getImplementationName(), ::svx::FontworkAlignmentControl_getImplementationName(),
::svx::FontworkAlignmentControl_createInstance, ::svx::FontworkAlignmentControl_createInstance,
::svx::FontworkAlignmentControl_getSupportedServiceNames() ); ::svx::FontworkAlignmentControl_getSupportedServiceNames() );
...@@ -84,7 +84,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svxcore_component_getFactory ( ...@@ -84,7 +84,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svxcore_component_getFactory (
else if( ::svx::FontworkCharacterSpacingControl_getImplementationName().equalsAscii( pImplName ) ) else if( ::svx::FontworkCharacterSpacingControl_getImplementationName().equalsAscii( pImplName ) )
{ {
xFactory = ::cppu::createSingleFactory( xFactory = ::cppu::createSingleFactory(
reinterpret_cast< XMultiServiceFactory * >( pServiceManager ), static_cast< XMultiServiceFactory * >( pServiceManager ),
::svx::FontworkCharacterSpacingControl_getImplementationName(), ::svx::FontworkCharacterSpacingControl_getImplementationName(),
::svx::FontworkCharacterSpacingControl_createInstance, ::svx::FontworkCharacterSpacingControl_createInstance,
::svx::FontworkCharacterSpacingControl_getSupportedServiceNames() ); ::svx::FontworkCharacterSpacingControl_getSupportedServiceNames() );
......
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