Kaydet (Commit) eb1b5b8b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Reduce to static_cast any reinterpret_cast from void pointers

Change-Id: I128d5b429a8f649f9236b2e007a90c24cac5b142
üst f42825fa
......@@ -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 ) )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment