Fixed warnings

This commit is contained in:
Damiano Galassi committed 2015-08-19 14:47:09 +02:00
1 parent f53f64e262
commit d12e815539
5 files changed
+14 -10

No files matched your search

+5 -4
View File
@@ -659,10 +659,11 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn
for (index = [itemIndexes lastIndex]; index != NSNotFound; index = [itemIndexes indexLessThanIndex:index]) {
NSArray *representations = [[[metadata.artworks objectAtIndex:index] image] representations];
NSData *bitmapData = [NSBitmapImageRep representationOfImageRepsInArray:representations
usingType:NSTIFFFileType properties:nil];
[pasteboard setData:bitmapData forType:NSTIFFPboardType];
if (representations) {
NSData *bitmapData = [NSBitmapImageRep representationOfImageRepsInArray:representations
usingType:NSTIFFFileType properties:@{}];
[pasteboard setData:bitmapData forType:NSTIFFPboardType];
}
}
return [itemIndexes count];