Reduce to static_cast any reinterpret_cast from void pointers

Change-Id: I7e0e4982611d2680d657f99eb2359db1f80e4f96
This commit is contained in:
Stephan Bergmann 2015-03-31 13:16:51 +02:00
parent a74aa43afb
commit b95b9cc298
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL fsstorage_component_getFactory (
if (FSStorageFactory::impl_staticGetImplementationName().equalsAscii(pImplementationName))
{
xFactory = cppu::createOneInstanceFactory (
reinterpret_cast< lang::XMultiServiceFactory* >(pServiceManager),
static_cast< lang::XMultiServiceFactory* >(pServiceManager),
FSStorageFactory::impl_staticGetImplementationName(),
FSStorageFactory::impl_staticCreateSelfInstance,
FSStorageFactory::impl_staticGetSupportedServiceNames() );

View File

@ -1451,7 +1451,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL passwordcontainer_component_getFactory (
if (PasswordContainer::impl_getStaticImplementationName().equalsAscii(pImplementationName))
{
xFactory = PasswordContainer::impl_createFactory (
reinterpret_cast< XMultiServiceFactory* >(pServiceManager));
static_cast< XMultiServiceFactory* >(pServiceManager));
}
if (xFactory.is())
{