Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I128d5b429a8f649f9236b2e007a90c24cac5b142
This commit is contained in:
@@ -807,7 +807,7 @@ void ExtensionCmdQueue::Thread::execute()
|
||||
dpExc.Cause.getValueTypeClass() == uno::TypeClass_EXCEPTION)
|
||||
{
|
||||
// notify error cause only:
|
||||
msg = reinterpret_cast< uno::Exception const * >( dpExc.Cause.getValue() )->Message;
|
||||
msg = static_cast< uno::Exception const * >( dpExc.Cause.getValue() )->Message;
|
||||
}
|
||||
if (msg.isEmpty()) // fallback for debugging purposes
|
||||
msg = ::comphelper::anyToString(exc);
|
||||
|
@@ -274,7 +274,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL offacc_component_getFactory(char const *pIm
|
||||
// Define variables which are used in following macros.
|
||||
Reference< XSingleServiceFactory > xFactory;
|
||||
Reference< XMultiServiceFactory > xServiceManager(
|
||||
reinterpret_cast< XMultiServiceFactory* >(pServiceManager));
|
||||
static_cast< XMultiServiceFactory* >(pServiceManager));
|
||||
|
||||
if (desktop::Acceptor::impl_getImplementationName().equalsAscii( pImplementationName ) )
|
||||
{
|
||||
|
Reference in New Issue
Block a user