Changeset 7516


Ignore:
Timestamp:
Dec 26, 2008, 3:31:25 PM (12 years ago)
Author:
livings124
Message:

missed one class for fast enumeration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/MessageWindowController.m

    r7508 r7516  
    260260    NSMutableArray * messageStrings = [NSMutableArray arrayWithCapacity: [indexes count]];
    261261   
    262     NSEnumerator * enumerator = [[fMessages objectsAtIndexes: indexes] objectEnumerator];
    263     NSDictionary * message;
    264     while ((message = [enumerator nextObject]))
     262    for (NSDictionary * message in [fMessages objectsAtIndexes: indexes])
    265263        [messageStrings addObject: [self stringForMessage: message]];
    266264   
     
    316314    //create the text to output
    317315    NSMutableArray * messageStrings = [NSMutableArray arrayWithCapacity: [fMessages count]];
    318     NSEnumerator * enumerator = [sortedMessages objectEnumerator];
    319     NSDictionary * message;
    320     while ((message = [enumerator nextObject]))
     316    for (NSDictionary * message in sortedMessages)
    321317        [messageStrings addObject: [self stringForMessage: message]];
    322318   
Note: See TracChangeset for help on using the changeset viewer.