Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I7e0e4982611d2680d657f99eb2359db1f80e4f96
This commit is contained in:
@@ -191,7 +191,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL fsstorage_component_getFactory (
|
|||||||
if (FSStorageFactory::impl_staticGetImplementationName().equalsAscii(pImplementationName))
|
if (FSStorageFactory::impl_staticGetImplementationName().equalsAscii(pImplementationName))
|
||||||
{
|
{
|
||||||
xFactory = cppu::createOneInstanceFactory (
|
xFactory = cppu::createOneInstanceFactory (
|
||||||
reinterpret_cast< lang::XMultiServiceFactory* >(pServiceManager),
|
static_cast< lang::XMultiServiceFactory* >(pServiceManager),
|
||||||
FSStorageFactory::impl_staticGetImplementationName(),
|
FSStorageFactory::impl_staticGetImplementationName(),
|
||||||
FSStorageFactory::impl_staticCreateSelfInstance,
|
FSStorageFactory::impl_staticCreateSelfInstance,
|
||||||
FSStorageFactory::impl_staticGetSupportedServiceNames() );
|
FSStorageFactory::impl_staticGetSupportedServiceNames() );
|
||||||
|
@@ -1451,7 +1451,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL passwordcontainer_component_getFactory (
|
|||||||
if (PasswordContainer::impl_getStaticImplementationName().equalsAscii(pImplementationName))
|
if (PasswordContainer::impl_getStaticImplementationName().equalsAscii(pImplementationName))
|
||||||
{
|
{
|
||||||
xFactory = PasswordContainer::impl_createFactory (
|
xFactory = PasswordContainer::impl_createFactory (
|
||||||
reinterpret_cast< XMultiServiceFactory* >(pServiceManager));
|
static_cast< XMultiServiceFactory* >(pServiceManager));
|
||||||
}
|
}
|
||||||
if (xFactory.is())
|
if (xFactory.is())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user