Changeset 11649


Ignore:
Timestamp:
Jan 9, 2011, 6:45:18 PM (11 years ago)
Author:
livings124
Message:

silence a warning

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/NSStringAdditions.m

    r11648 r11649  
    212212   
    213213    //match Finder's behavior
    214     NSNumberFormatter * numberFormatter = [[[NSNumberFormatter alloc] init] autorelease];
     214    NSNumberFormatter * numberFormatter = [[NSNumberFormatter alloc] init];
    215215    [numberFormatter setNumberStyle: NSNumberFormatterDecimalStyle];
    216216    [numberFormatter setMinimumFractionDigits: 0];
     
    218218   
    219219    NSString * fileSizeString = [numberFormatter stringFromNumber: [NSNumber numberWithFloat: convertedSize]];
     220    [numberFormatter release];
    220221   
    221222    if (!notAllowedUnit || ![unit isEqualToString: notAllowedUnit])
  • trunk/macosx/Torrent.m

    r11647 r11649  
    12041204        case TR_STATUS_SEED:
    12051205            return NSLocalizedString(@"Seeding", "Torrent -> status string");
     1206       
     1207        default:
     1208            NSAssert1(NO, @"Unknown activity %d for statis string", fStat->activity);
     1209            return nil;
    12061210    }
    12071211}
Note: See TracChangeset for help on using the changeset viewer.