aboutsummaryrefslogtreecommitdiff
path: root/iPhone
diff options
context:
space:
mode:
Diffstat (limited to 'iPhone')
-rw-r--r--iPhone/GTMABAddressBook.m6
1 files changed, 2 insertions, 4 deletions
diff --git a/iPhone/GTMABAddressBook.m b/iPhone/GTMABAddressBook.m
index 05a5523..05dc27f 100644
--- a/iPhone/GTMABAddressBook.m
+++ b/iPhone/GTMABAddressBook.m
@@ -441,10 +441,8 @@ typedef struct {
NSArray *people
= GTMCFAutorelease(ABGroupCopyArrayOfAllMembers([self recordRef]));
NSMutableArray *gtmPeople = [NSMutableArray arrayWithCapacity:[people count]];
- NSEnumerator *enumerator = [people objectEnumerator];
- ABRecordRef person;
- while ((person = [enumerator nextObject])) {
- [gtmPeople addObject:[GTMABPerson recordWithRecord:person]];
+ for (id person in people) {
+ [gtmPeople addObject:[GTMABPerson recordWithRecord:(ABRecordRef)person]];
}
return gtmPeople;
}