Changeset 7514 for trunk/macosx/TorrentGroup.m
- Timestamp:
- Dec 26, 2008, 7:25:17 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/TorrentGroup.m
r7200 r7514 58 58 { 59 59 uint64_t uploaded = 0, downloaded = 0; 60 NSEnumerator * enumerator = [fTorrents objectEnumerator]; 61 Torrent * torrent; 62 while ((torrent = [enumerator nextObject])) 60 for (Torrent * torrent in fTorrents) 63 61 { 64 62 uploaded += [torrent uploadedTotal]; … … 72 70 { 73 71 CGFloat rate = 0.0f; 74 NSEnumerator * enumerator = [fTorrents objectEnumerator]; 75 Torrent * torrent; 76 while ((torrent = [enumerator nextObject])) 72 for (Torrent * torrent in fTorrents) 77 73 rate += [torrent uploadRate]; 78 74 … … 83 79 { 84 80 CGFloat rate = 0.0f; 85 NSEnumerator * enumerator = [fTorrents objectEnumerator]; 86 Torrent * torrent; 87 while ((torrent = [enumerator nextObject])) 81 for (Torrent * torrent in fTorrents) 88 82 rate += [torrent downloadRate]; 89 83
Note: See TracChangeset
for help on using the changeset viewer.