loplugin:redundantcast
Change-Id: Icc700698711174246c5fc800105ac5b7c6102296
This commit is contained in:
@@ -730,7 +730,7 @@ MacabHeader *MacabRecords::createHeaderForProperty(const ABPropertyType _propert
|
|||||||
*/
|
*/
|
||||||
for(i = 0; i < numRecords; i++)
|
for(i = 0; i < numRecords; i++)
|
||||||
{
|
{
|
||||||
dictType = (ABPropertyType) getABTypeFromCFType( CFGetTypeID(dictValues[i]) );
|
dictType = getABTypeFromCFType( CFGetTypeID(dictValues[i]) );
|
||||||
localizedDictKey = ABCopyLocalizedPropertyOrLabel(dictKeys[i]);
|
localizedDictKey = ABCopyLocalizedPropertyOrLabel(dictKeys[i]);
|
||||||
dictKeyString = CFStringToOUString(localizedDictKey);
|
dictKeyString = CFStringToOUString(localizedDictKey);
|
||||||
dictLabelString = propertyNameString + ": " + fixLabel(dictKeyString);
|
dictLabelString = propertyNameString + ": " + fixLabel(dictKeyString);
|
||||||
@@ -797,7 +797,7 @@ MacabHeader *MacabRecords::createHeaderForProperty(const ABPropertyType _propert
|
|||||||
for(i = 0; i < arrLength; i++)
|
for(i = 0; i < arrLength; i++)
|
||||||
{
|
{
|
||||||
arrValue = CFArrayGetValueAtIndex(static_cast<CFArrayRef>(_propertyValue), i);
|
arrValue = CFArrayGetValueAtIndex(static_cast<CFArrayRef>(_propertyValue), i);
|
||||||
arrType = (ABPropertyType) getABTypeFromCFType( CFGetTypeID(arrValue) );
|
arrType = getABTypeFromCFType( CFGetTypeID(arrValue) );
|
||||||
arrLabelString = propertyNameString + OUString::number(i);
|
arrLabelString = propertyNameString + OUString::number(i);
|
||||||
arrLabel = OUStringToCFString(arrLabelString);
|
arrLabel = OUStringToCFString(arrLabelString);
|
||||||
auto hdr = std::unique_ptr<MacabHeader>(createHeaderForProperty(arrType, arrValue, arrLabel));
|
auto hdr = std::unique_ptr<MacabHeader>(createHeaderForProperty(arrType, arrValue, arrLabel));
|
||||||
|
Reference in New Issue
Block a user