Changeset 7625


Ignore:
Timestamp:
Jan 6, 2009, 2:07:55 AM (12 years ago)
Author:
livings124
Message:

warnings--; miscellaneous other cleanup

Location:
trunk/macosx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r7571 r7625  
    20662066   
    20672067    [fTableView selectValues: selectedValues];
    2068     #warning still happens anyway?
    2069     //removed because it made the inspector reset (noticeable when a transfer with web seeds is selected)
    2070     //[self resetInfo]; //if group is already selected, but the torrents in it change
     2068    [self resetInfo]; //if group is already selected, but the torrents in it change
    20712069   
    20722070    [self setBottomCountText: groupRows || filterStatus || filterGroup || filterText];
  • trunk/macosx/MessageWindowController.m

    r7516 r7625  
    234234        fAttributes = [[[[column dataCell] attributedStringValue] attributesAtIndex: 0 effectiveRange: NULL] retain];
    235235   
    236     CGFloat count = floorf([[[fMessages objectAtIndex: row] objectForKey: @"Message"] sizeWithAttributes: fAttributes].width
    237                             / [column width]);
    238     return [tableView rowHeight] * (count + 1.0f);
     236    const CGFloat count = floorf([[[fMessages objectAtIndex: row] objectForKey: @"Message"] sizeWithAttributes: fAttributes].width
     237                                / [column width]);
     238    return [tableView rowHeight] * (count + 1.0);
    239239}
    240240
  • trunk/macosx/PrefsController.m

    r7514 r7625  
    435435- (void) setPeersGlobal: (id) sender
    436436{
    437     int count = [sender intValue];
     437    const int count = [sender intValue];
    438438    [fDefaults setInteger: count forKey: @"PeersTotal"];
    439439    tr_sessionSetPeerLimit(fHandle, count);
     
    442442- (void) setPeersTorrent: (id) sender
    443443{
    444     int count = [sender intValue];
     444    const int count = [sender intValue];
    445445    [fDefaults setInteger: count forKey: @"PeersTorrent"];
    446446}
     
    453453- (void) setEncryptionMode: (id) sender
    454454{
    455     tr_sessionSetEncryption(fHandle, [fDefaults boolForKey: @"EncryptionPrefer"] ?
    456         ([fDefaults boolForKey: @"EncryptionRequire"] ? TR_ENCRYPTION_REQUIRED : TR_ENCRYPTION_PREFERRED) : TR_CLEAR_PREFERRED);
     455    const tr_encryption_mode mode = [fDefaults boolForKey: @"EncryptionPrefer"] ?
     456        ([fDefaults boolForKey: @"EncryptionRequire"] ? TR_ENCRYPTION_REQUIRED : TR_ENCRYPTION_PREFERRED) : TR_CLEAR_PREFERRED;
     457    tr_sessionSetEncryption(fHandle, mode);
    457458}
    458459
    459460- (void) setBlocklistEnabled: (id) sender
    460461{
    461     BOOL enable = [sender state] == NSOnState;
     462    const BOOL enable = [sender state] == NSOnState;
    462463    [fDefaults setBool: enable forKey: @"Blocklist"];
    463464    tr_blocklistSetEnabled(fHandle, enable);
  • trunk/macosx/Torrent.m

    r7599 r7625  
    778778}
    779779
     780//used by auto group rules
    780781- (NSString *) trackerList
    781782{
     
    14321433        have += fFileStat[index].bytesCompleted;
    14331434   
    1434     NSAssert([node size], @"director in torrent file has size 0");
     1435    NSAssert([node size], @"directory in torrent file has size 0");
    14351436    return (CGFloat)have / [node size];
    14361437}
Note: See TracChangeset for help on using the changeset viewer.