diff options
Diffstat (limited to 'package')
-rw-r--r-- | package/source/manifest/UnoRegister.cxx | 2 | ||||
-rw-r--r-- | package/source/xstor/register.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/package/source/manifest/UnoRegister.cxx b/package/source/manifest/UnoRegister.cxx index 40aeee0a438d..f453512d4c78 100644 --- a/package/source/manifest/UnoRegister.cxx +++ b/package/source/manifest/UnoRegister.cxx @@ -45,7 +45,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL package2_component_getFactory( { void * pRet = 0; uno::Reference< XMultiServiceFactory > xSMgr( - reinterpret_cast< XMultiServiceFactory * >( pServiceManager ) ); + static_cast< XMultiServiceFactory * >( pServiceManager ) ); uno::Reference< XSingleServiceFactory > xFactory; if (ManifestReader::static_getImplementationName().equalsAscii( pImplName ) ) diff --git a/package/source/xstor/register.cxx b/package/source/xstor/register.cxx index 3020ddd59d0f..65cd33fa0559 100644 --- a/package/source/xstor/register.cxx +++ b/package/source/xstor/register.cxx @@ -37,7 +37,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL xstor_component_getFactory( const sal_Char if ( pServiceManager && aImplName.equals( OStorageFactory::impl_staticGetImplementationName() ) ) { - xFactory= ::cppu::createOneInstanceFactory( reinterpret_cast< lang::XMultiServiceFactory*>( pServiceManager ), + xFactory= ::cppu::createOneInstanceFactory( static_cast< lang::XMultiServiceFactory*>( pServiceManager ), OStorageFactory::impl_staticGetImplementationName(), OStorageFactory::impl_staticCreateSelfInstance, OStorageFactory::impl_staticGetSupportedServiceNames() ); |