summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-31 13:15:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-03-31 13:15:43 +0200
commitc9c991a9af4cae97011d1834c986e6fa27eaff89 (patch)
tree50ee476dc19f4a2b081d2b9717028310e3f0d8dc /package
parentd2d04bd3a5e2f1d814e7b993a1169a597b5cff09 (diff)
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I6979d9af3a97918593f0596df17c096bd3f4c4ad
Diffstat (limited to 'package')
-rw-r--r--package/source/manifest/UnoRegister.cxx2
-rw-r--r--package/source/xstor/register.cxx2
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() );