loplugin:redundantcast

Change-Id: Icc700698711174246c5fc800105ac5b7c6102296
This commit is contained in:
Stephan Bergmann
2017-03-23 20:00:15 +01:00
parent d2d6e7dc90
commit a12b484be3

View File

@@ -730,7 +730,7 @@ MacabHeader *MacabRecords::createHeaderForProperty(const ABPropertyType _propert
*/
for(i = 0; i < numRecords; i++)
{
dictType = (ABPropertyType) getABTypeFromCFType( CFGetTypeID(dictValues[i]) );
dictType = getABTypeFromCFType( CFGetTypeID(dictValues[i]) );
localizedDictKey = ABCopyLocalizedPropertyOrLabel(dictKeys[i]);
dictKeyString = CFStringToOUString(localizedDictKey);
dictLabelString = propertyNameString + ": " + fixLabel(dictKeyString);
@@ -797,7 +797,7 @@ MacabHeader *MacabRecords::createHeaderForProperty(const ABPropertyType _propert
for(i = 0; i < arrLength; i++)
{
arrValue = CFArrayGetValueAtIndex(static_cast<CFArrayRef>(_propertyValue), i);
arrType = (ABPropertyType) getABTypeFromCFType( CFGetTypeID(arrValue) );
arrType = getABTypeFromCFType( CFGetTypeID(arrValue) );
arrLabelString = propertyNameString + OUString::number(i);
arrLabel = OUStringToCFString(arrLabelString);
auto hdr = std::unique_ptr<MacabHeader>(createHeaderForProperty(arrType, arrValue, arrLabel));