Fixed some static analyizer warnings.

This commit is contained in:
Damiano Galassi committed 2016-01-27 13:30:00 +01:00
1 parent a7131d300c
commit 64163973f3
8 files changed
+25 -16

No files matched your search

+9 -5
View File
@@ -108,11 +108,15 @@
}
- (NSUInteger) ratingIndexForiTunesCode:(NSString *)aiTunesCode {
for (NSUInteger i = 0; i < [iTunesCodes count]; i++) {
if ([[iTunesCodes objectAtIndex:i] isEqualToString:aiTunesCode]) {
return i;
}
}
NSUInteger i = 0;
for (NSString *code in iTunesCodes) {
if ([code isEqualToString:aiTunesCode]) {
return i;
}
i++;
}
return [self unknownIndex];
}