diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-07-15 22:02:09 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-15 22:02:09 +0200 |
commit | 08367272b95a944cad6bf0bc6915544f2a6ee243 (patch) | |
tree | 16dae3ed9030845530ab7db289275718f0b60104 /connectivity | |
parent | b719a57d5ff2a88dba6234a7064aca6ad5a44089 (diff) |
loplugin:redundantcast
Change-Id: I2d963eb8395b8eca776032d32d72f5ec85891c70
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/macab/MacabRecords.cxx | 6 | ||||
-rw-r--r-- | connectivity/source/drivers/macab/MacabResultSet.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
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<CFStringRef *>(malloc(sizeof(CFStringRef)*numRecords)); dictValues = static_cast<CFTypeRef *>(malloc(sizeof(CFTypeRef)*numRecords)); - CFDictionaryGetKeysAndValues(static_cast<CFDictionaryRef>(_propertyValue), reinterpret_cast<const void **>(dictKeys), static_cast<const void **>(dictValues)); + CFDictionaryGetKeysAndValues(static_cast<CFDictionaryRef>(_propertyValue), reinterpret_cast<const void **>(dictKeys), dictValues); propertyNameString = CFStringToOUString(_propertyName); @@ -792,7 +792,7 @@ MacabHeader *MacabRecords::createHeaderForProperty(const ABPropertyType _propert */ for(i = 0; i < arrLength; i++) { - arrValue = static_cast<CFTypeRef>(CFArrayGetValueAtIndex(static_cast<CFArrayRef>(_propertyValue), i)); + arrValue = CFArrayGetValueAtIndex(static_cast<CFArrayRef>(_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<CFStringRef *>(malloc(sizeof(CFStringRef)*numRecords)); dictValues = static_cast<CFTypeRef *>(malloc(sizeof(CFTypeRef)*numRecords)); - CFDictionaryGetKeysAndValues(static_cast<CFDictionaryRef>(_propertyValue), reinterpret_cast<const void **>(dictKeys), static_cast<const void **>(dictValues)); + CFDictionaryGetKeysAndValues(static_cast<CFDictionaryRef>(_propertyValue), reinterpret_cast<const void **>(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<MacabResultSet*>(this)->getArrayHelper(); + return *getArrayHelper(); } sal_Bool MacabResultSet::convertFastPropertyValue( |