Changeset 9185


Ignore:
Timestamp:
Sep 26, 2009, 4:46:14 PM (12 years ago)
Author:
livings124
Message:

let's copy the tracker stat object only once instead of twice on each pulse

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r9182 r9185  
    757757        }
    758758       
    759         TrackerNode * tracker = [[TrackerNode alloc] initWithTrackerStat: stats[i]];
     759        TrackerNode * tracker = [[TrackerNode alloc] initWithTrackerStat: &stats[i]];
    760760        [trackers addObject: tracker];
    761761        [tracker release];
  • trunk/macosx/TrackerNode.h

    r9174 r9185  
    3131}
    3232
    33 - (id) initWithTrackerStat: (tr_tracker_stat) stat;
     33- (id) initWithTrackerStat: (tr_tracker_stat *) stat;
    3434
    3535- (NSString *) host;
  • trunk/macosx/TrackerNode.m

    r9174 r9185  
    2727@implementation TrackerNode
    2828
    29 - (id) initWithTrackerStat: (tr_tracker_stat) stat
     29- (id) initWithTrackerStat: (tr_tracker_stat *) stat
    3030{
    3131    if ((self = [super init]))
    3232    {
    33         fStat = stat;
     33        fStat = *stat;
    3434    }
    3535   
Note: See TracChangeset for help on using the changeset viewer.