Ignore:
Timestamp:
Dec 26, 2008, 7:25:17 AM (12 years ago)
Author:
livings124
Message:

eliminate some more enumerator objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/FileOutlineController.m

    r7508 r7514  
    114114        NSMutableArray * list = [NSMutableArray arrayWithCapacity: [fTorrent fileCount]];
    115115       
    116         NSEnumerator * enumerator = [[fTorrent flatFileList] objectEnumerator];
    117         FileListNode * node;
    118         while ((node = [enumerator nextObject]))
     116        for (FileListNode * node in [fTorrent flatFileList])
    119117            if ([[node name] rangeOfString: fFilterText options: NSCaseInsensitiveSearch].location != NSNotFound)
    120118                [list addObject: node];
Note: See TracChangeset for help on using the changeset viewer.