diff --git a/connectivity/source/drivers/macab/MacabRecords.cxx b/connectivity/source/drivers/macab/MacabRecords.cxx index 9ca9bca94d3e..7174e6d3ae0f 100644 --- a/connectivity/source/drivers/macab/MacabRecords.cxx +++ b/connectivity/source/drivers/macab/MacabRecords.cxx @@ -710,7 +710,7 @@ MacabHeader *MacabRecords::createHeaderForProperty(const ABPropertyType _propert /* Get the keys and values */ dictKeys = static_cast(malloc(sizeof(CFStringRef)*numRecords)); dictValues = static_cast(malloc(sizeof(CFTypeRef)*numRecords)); - CFDictionaryGetKeysAndValues(static_cast(_propertyValue), reinterpret_cast(dictKeys), static_cast(dictValues)); + CFDictionaryGetKeysAndValues(static_cast(_propertyValue), reinterpret_cast(dictKeys), dictValues); propertyNameString = CFStringToOUString(_propertyName); @@ -792,7 +792,7 @@ MacabHeader *MacabRecords::createHeaderForProperty(const ABPropertyType _propert */ for(i = 0; i < arrLength; i++) { - arrValue = static_cast(CFArrayGetValueAtIndex(static_cast(_propertyValue), i)); + arrValue = CFArrayGetValueAtIndex(static_cast(_propertyValue), i); arrType = (ABPropertyType) getABTypeFromCFType( CFGetTypeID(arrValue) ); arrLabelString = propertyNameString + OUString::number(i); arrLabel = OUStringToCFString(arrLabelString); @@ -1021,7 +1021,7 @@ void MacabRecords::insertPropertyIntoMacabRecord(const ABPropertyType _propertyT CFTypeRef *dictValues; dictKeys = static_cast(malloc(sizeof(CFStringRef)*numRecords)); dictValues = static_cast(malloc(sizeof(CFTypeRef)*numRecords)); - CFDictionaryGetKeysAndValues(static_cast(_propertyValue), reinterpret_cast(dictKeys), static_cast(dictValues)); + CFDictionaryGetKeysAndValues(static_cast(_propertyValue), reinterpret_cast(dictKeys), dictValues); /* Going through each element... */ for(i = 0; i < numRecords; i++) diff --git a/connectivity/source/drivers/macab/MacabResultSet.cxx b/connectivity/source/drivers/macab/MacabResultSet.cxx index eaaa60e7fee5..e0e09aea6a9d 100644 --- a/connectivity/source/drivers/macab/MacabResultSet.cxx +++ b/connectivity/source/drivers/macab/MacabResultSet.cxx @@ -1007,7 +1007,7 @@ IPropertyArrayHelper* MacabResultSet::createArrayHelper() const IPropertyArrayHelper & MacabResultSet::getInfoHelper() { - return *static_cast(this)->getArrayHelper(); + return *getArrayHelper(); } sal_Bool MacabResultSet::convertFastPropertyValue(