Changeset 9908


Ignore:
Timestamp:
Jan 10, 2010, 4:26:30 PM (12 years ago)
Author:
livings124
Message:

assorted small cleanup and log removal

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/web.c

    r9907 r9908  
    517517        if( str[i] == ',' || str[i] == '-' || str[i] == '.'
    518518            || ( '0' <= str[i] && str[i] <= '9' )
     519            || ( 'A' <= str[i] && str[i] <= 'Z' )
    519520            || ( 'a' <= str[i] && str[i] <= 'z' )
    520             || ( 'A' <= str[i] && str[i] <= 'Z' )
    521521            || ( str[i] == '/' && !escape_slashes ) )
    522522            evbuffer_add( out, &str[i], 1 );
  • trunk/macosx/InfoWindowController.m

    r9902 r9908  
    17461746    NSIndexSet * selectedIndexes = [fTrackerTable selectedRowIndexes];
    17471747    BOOL groupSelected = NO;
    1748     for (NSUInteger i = 0, trackerIndex = 0; i < [fTrackers count]; ++i)
    1749     {
    1750         if ([[fTrackers objectAtIndex: i] isKindOfClass: [NSNumber class]])
     1748    for (NSUInteger i = 0; i < [fTrackers count]; ++i)
     1749    {
     1750        id object = [fTrackers objectAtIndex: i];
     1751        if ([object isKindOfClass: [NSNumber class]])
    17511752        {
    17521753            groupSelected = [selectedIndexes containsIndex: i];
     
    17571758        {
    17581759            if (groupSelected || [selectedIndexes containsIndex: i])
    1759                 [removeIdentifiers addIndex: [(TrackerNode *)[fTrackers objectAtIndex: i] identifier]];
    1760             ++trackerIndex;
    1761         }
    1762     }
    1763    
    1764     NSLog(@"%@", removeIdentifiers);
     1760                [removeIdentifiers addIndex: [(TrackerNode *)object identifier]];
     1761        }
     1762    }
    17651763   
    17661764    NSAssert([removeIdentifiers count] > 0, @"Trying to remove no trackers.");
  • trunk/macosx/Torrent.m

    r9902 r9908  
    637637    trackerStructs[oldTrackerCount].announce = (char *)[tracker UTF8String];
    638638    trackerStructs[oldTrackerCount].tier = trackerStructs[oldTrackerCount-1].tier + 1;
    639     trackerStructs[oldTrackerCount].identifier = trackerStructs[oldTrackerCount-1].identifier + 1;
     639    trackerStructs[oldTrackerCount].identifier = oldTrackerCount;
    640640   
    641641    const BOOL success = tr_torrentSetAnnounceList(fHandle, trackerStructs, oldTrackerCount+1);
Note: See TracChangeset for help on using the changeset viewer.