Changeset 3378


Ignore:
Timestamp:
Oct 12, 2007, 11:33:26 AM (15 years ago)
Author:
livings124
Message:

random cleanup

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoTabButtonCell.m

    r3303 r3378  
    3737{
    3838    //create regular back image
    39     if (fRegularImage)
    40         [fRegularImage release];
     39    [fRegularImage release];
    4140    fRegularImage = [[NSImage imageNamed: @"InfoTabBack.tif"] copy];
    4241   
    4342    //create selected back image
    44     if (fSelectedImage)
    45         [fSelectedImage release];
     43    [fSelectedImage release];
    4644    fSelectedImage = [[NSImage imageNamed: @"InfoTabBackAqua.tif"] copy];
    4745   
  • trunk/macosx/MessageWindowController.m

    r3368 r3378  
    186186    NSMutableArray * messageStrings = [NSMutableArray arrayWithCapacity: [indexes count]];
    187187   
    188     unsigned int i;
    189     for (i = [indexes firstIndex]; i != NSNotFound; i = [indexes indexGreaterThanIndex: i])
    190         [messageStrings addObject: [self stringForMessage: [fMessages objectAtIndex: i]]];
     188    NSEnumerator * enumerator = [[fMessages objectsAtIndexes: indexes] objectEnumerator];
     189    NSDictionary * message;
     190    while ((message = [enumerator nextObject]))
     191        [messageStrings addObject: [self stringForMessage: message]];
    191192   
    192193    [pb setString: [messageStrings componentsJoinedByString: @"\n"] forType: NSStringPboardType];
Note: See TracChangeset for help on using the changeset viewer.