Reduce to static_cast any reinterpret_cast from void pointers

Change-Id: I128d5b429a8f649f9236b2e007a90c24cac5b142
This commit is contained in:
Stephan Bergmann
2015-03-31 13:13:34 +02:00
parent f42825fa8a
commit eb1b5b8b0b
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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 ) )
{