diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno.cxx index e0e76cae3f03..259aff795031 100644 --- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno.cxx +++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno.cxx @@ -236,7 +236,7 @@ static typelib_TypeClass cpp2uno_call( uno_destructData( pUnoReturn, pReturnTypeDescr, 0 ); } // complex return ptr is set to return reg - *(void **)pRegisterReturn = pCppReturn; + *reinterpret_cast(pRegisterReturn) = pCppReturn; } if ( pReturnTypeDescr ) { @@ -346,7 +346,7 @@ typelib_TypeClass cpp_vtable_call( XInterface * pInterface = 0; (*pCppI->getBridge()->getCppEnv()->getRegisteredInterface) ( pCppI->getBridge()->getCppEnv(), - (void **)&pInterface, + reinterpret_cast(&pInterface), pCppI->getOid().pData, reinterpret_cast( pTD ) ); diff --git a/connectivity/source/drivers/macab/MacabRecords.cxx b/connectivity/source/drivers/macab/MacabRecords.cxx index 167965c14ae7..4e663bad114a 100644 --- a/connectivity/source/drivers/macab/MacabRecords.cxx +++ b/connectivity/source/drivers/macab/MacabRecords.cxx @@ -677,7 +677,7 @@ MacabHeader *MacabRecords::createHeaderForProperty(const ABPropertyType _propert /* Get the keys and values */ dictKeys = (CFStringRef *) malloc(sizeof(CFStringRef)*numRecords); dictValues = (CFTypeRef *) malloc(sizeof(CFTypeRef)*numRecords); - CFDictionaryGetKeysAndValues((CFDictionaryRef) _propertyValue, (const void **) dictKeys, (const void **) dictValues); + CFDictionaryGetKeysAndValues((CFDictionaryRef) _propertyValue, reinterpret_cast(dictKeys), (const void **) dictValues); propertyNameString = CFStringToOUString(_propertyName); @@ -1020,7 +1020,7 @@ void MacabRecords::insertPropertyIntoMacabRecord(const ABPropertyType _propertyT CFTypeRef *dictValues; dictKeys = (CFStringRef *) malloc(sizeof(CFStringRef)*numRecords); dictValues = (CFTypeRef *) malloc(sizeof(CFTypeRef)*numRecords); - CFDictionaryGetKeysAndValues((CFDictionaryRef) _propertyValue, (const void **) dictKeys, (const void **) dictValues); + CFDictionaryGetKeysAndValues((CFDictionaryRef) _propertyValue, reinterpret_cast(dictKeys), (const void **) dictValues); /* Going through each element... */ for(i = 0; i < numRecords; i++)