loplugin:cstylecast (Mac OS X)
Change-Id: Ia8f2c9f1c1c284708a2cbde379197ec6ba58742f
This commit is contained in:
@@ -236,7 +236,7 @@ static typelib_TypeClass cpp2uno_call(
|
|||||||
uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
|
uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
|
||||||
}
|
}
|
||||||
// complex return ptr is set to return reg
|
// complex return ptr is set to return reg
|
||||||
*(void **)pRegisterReturn = pCppReturn;
|
*reinterpret_cast<void **>(pRegisterReturn) = pCppReturn;
|
||||||
}
|
}
|
||||||
if ( pReturnTypeDescr )
|
if ( pReturnTypeDescr )
|
||||||
{
|
{
|
||||||
@@ -346,7 +346,7 @@ typelib_TypeClass cpp_vtable_call(
|
|||||||
XInterface * pInterface = 0;
|
XInterface * pInterface = 0;
|
||||||
(*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)
|
(*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)
|
||||||
( pCppI->getBridge()->getCppEnv(),
|
( pCppI->getBridge()->getCppEnv(),
|
||||||
(void **)&pInterface,
|
reinterpret_cast<void **>(&pInterface),
|
||||||
pCppI->getOid().pData,
|
pCppI->getOid().pData,
|
||||||
reinterpret_cast<typelib_InterfaceTypeDescription *>( pTD ) );
|
reinterpret_cast<typelib_InterfaceTypeDescription *>( pTD ) );
|
||||||
|
|
||||||
|
@@ -677,7 +677,7 @@ MacabHeader *MacabRecords::createHeaderForProperty(const ABPropertyType _propert
|
|||||||
/* Get the keys and values */
|
/* Get the keys and values */
|
||||||
dictKeys = (CFStringRef *) malloc(sizeof(CFStringRef)*numRecords);
|
dictKeys = (CFStringRef *) malloc(sizeof(CFStringRef)*numRecords);
|
||||||
dictValues = (CFTypeRef *) malloc(sizeof(CFTypeRef)*numRecords);
|
dictValues = (CFTypeRef *) malloc(sizeof(CFTypeRef)*numRecords);
|
||||||
CFDictionaryGetKeysAndValues((CFDictionaryRef) _propertyValue, (const void **) dictKeys, (const void **) dictValues);
|
CFDictionaryGetKeysAndValues((CFDictionaryRef) _propertyValue, reinterpret_cast<const void **>(dictKeys), (const void **) dictValues);
|
||||||
|
|
||||||
propertyNameString = CFStringToOUString(_propertyName);
|
propertyNameString = CFStringToOUString(_propertyName);
|
||||||
|
|
||||||
@@ -1020,7 +1020,7 @@ void MacabRecords::insertPropertyIntoMacabRecord(const ABPropertyType _propertyT
|
|||||||
CFTypeRef *dictValues;
|
CFTypeRef *dictValues;
|
||||||
dictKeys = (CFStringRef *) malloc(sizeof(CFStringRef)*numRecords);
|
dictKeys = (CFStringRef *) malloc(sizeof(CFStringRef)*numRecords);
|
||||||
dictValues = (CFTypeRef *) malloc(sizeof(CFTypeRef)*numRecords);
|
dictValues = (CFTypeRef *) malloc(sizeof(CFTypeRef)*numRecords);
|
||||||
CFDictionaryGetKeysAndValues((CFDictionaryRef) _propertyValue, (const void **) dictKeys, (const void **) dictValues);
|
CFDictionaryGetKeysAndValues((CFDictionaryRef) _propertyValue, reinterpret_cast<const void **>(dictKeys), (const void **) dictValues);
|
||||||
|
|
||||||
/* Going through each element... */
|
/* Going through each element... */
|
||||||
for(i = 0; i < numRecords; i++)
|
for(i = 0; i < numRecords; i++)
|
||||||
|
Reference in New Issue
Block a user