Ignore:
Timestamp:
Sep 16, 2007, 4:33:49 PM (15 years ago)
Author:
livings124
Message:

trivial Torrent code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r3087 r3088  
    187187{
    188188    fUseIncompleteFolder = folder != nil;
    189     if (fIncompleteFolder)
    190     {
    191         [fIncompleteFolder release];
    192         fIncompleteFolder = nil;
    193     }
    194    
    195     if (folder)
    196         fIncompleteFolder = [folder retain];
     189   
     190    [fIncompleteFolder release];
     191    fIncompleteFolder = fUseIncompleteFolder ? [folder retain] : nil;
    197192   
    198193    [self updateDownloadFolder];
     
    201196- (void) changeDownloadFolder: (NSString *) folder
    202197{
    203     if (fDownloadFolder)
    204         [fDownloadFolder release];
     198    [fDownloadFolder release];
    205199    fDownloadFolder = [folder retain];
    206200   
     
    256250        }
    257251               
    258                 if (fDateCompleted)
    259                         [fDateCompleted release];
     252                [fDateCompleted release];
    260253                fDateCompleted = [[NSDate alloc] init];
    261254       
     
    323316
    324317        case TR_STATUS_CHECK_WAIT:
    325             tempString = [NSLocalizedString(@"Waiting to check existing data", "Torrent -> status string")
    326                             stringByAppendingEllipsis];
     318            tempString = [NSLocalizedString(@"Waiting to check existing data", "Torrent -> status string") stringByAppendingEllipsis];
    327319           
    328320            [statusString setString: tempString];
Note: See TracChangeset for help on using the changeset viewer.