diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:17:04 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:17:04 +0200 |
commit | a5d6cd83d7cac1fde630ac1211354242cbe4e085 (patch) | |
tree | c022ef0929fe0abafc6e0791b9ae1b5eb6a26f3a /svx | |
parent | 0da9460bf0b78e252402d98b609cd988162867b0 (diff) |
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I571893a8340ee0f4a0de393395b5eef7a4795451
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/core/coreservices.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/core/coreservices.cxx b/svx/source/core/coreservices.cxx index 998a2ebeab75..dc52b9f301c4 100644 --- a/svx/source/core/coreservices.cxx +++ b/svx/source/core/coreservices.cxx @@ -44,7 +44,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svxcore_component_getFactory ( if( ::svx::ExtrusionDepthController_getImplementationName().equalsAscii( pImplName ) ) { xFactory = ::cppu::createSingleFactory( - reinterpret_cast< XMultiServiceFactory * >( pServiceManager ), + static_cast< XMultiServiceFactory * >( pServiceManager ), ::svx::ExtrusionDepthController_getImplementationName(), ::svx::ExtrusionDepthController_createInstance, ::svx::ExtrusionDepthController_getSupportedServiceNames() ); @@ -52,7 +52,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svxcore_component_getFactory ( else if( ::svx::ExtrusionDirectionControl_getImplementationName().equalsAscii( pImplName ) ) { xFactory = ::cppu::createSingleFactory( - reinterpret_cast< XMultiServiceFactory * >( pServiceManager ), + static_cast< XMultiServiceFactory * >( pServiceManager ), ::svx::ExtrusionDirectionControl_getImplementationName(), ::svx::ExtrusionDirectionControl_createInstance, ::svx::ExtrusionDirectionControl_getSupportedServiceNames() ); @@ -60,7 +60,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svxcore_component_getFactory ( else if( ::svx::ExtrusionLightingControl_getImplementationName().equalsAscii( pImplName ) ) { xFactory = ::cppu::createSingleFactory( - reinterpret_cast< XMultiServiceFactory * >( pServiceManager ), + static_cast< XMultiServiceFactory * >( pServiceManager ), ::svx::ExtrusionLightingControl_getImplementationName(), ::svx::ExtrusionLightingControl_createInstance, ::svx::ExtrusionLightingControl_getSupportedServiceNames() ); @@ -68,7 +68,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svxcore_component_getFactory ( else if( ::svx::ExtrusionSurfaceControl_getImplementationName().equalsAscii( pImplName ) ) { xFactory = ::cppu::createSingleFactory( - reinterpret_cast< XMultiServiceFactory * >( pServiceManager ), + static_cast< XMultiServiceFactory * >( pServiceManager ), ::svx::ExtrusionSurfaceControl_getImplementationName(), ::svx::ExtrusionSurfaceControl_createInstance, ::svx::ExtrusionSurfaceControl_getSupportedServiceNames() ); @@ -76,7 +76,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svxcore_component_getFactory ( else if( ::svx::FontworkAlignmentControl_getImplementationName().equalsAscii( pImplName ) ) { xFactory = ::cppu::createSingleFactory( - reinterpret_cast< XMultiServiceFactory * >( pServiceManager ), + static_cast< XMultiServiceFactory * >( pServiceManager ), ::svx::FontworkAlignmentControl_getImplementationName(), ::svx::FontworkAlignmentControl_createInstance, ::svx::FontworkAlignmentControl_getSupportedServiceNames() ); @@ -84,7 +84,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svxcore_component_getFactory ( else if( ::svx::FontworkCharacterSpacingControl_getImplementationName().equalsAscii( pImplName ) ) { xFactory = ::cppu::createSingleFactory( - reinterpret_cast< XMultiServiceFactory * >( pServiceManager ), + static_cast< XMultiServiceFactory * >( pServiceManager ), ::svx::FontworkCharacterSpacingControl_getImplementationName(), ::svx::FontworkCharacterSpacingControl_createInstance, ::svx::FontworkCharacterSpacingControl_getSupportedServiceNames() ); |