get rid of some warnings

This commit is contained in:
Mitchell Livingston 2007-08-08 14:35:40 +00:00
parent 4d1403fc21
commit d69bc3798f
2 changed files with 4 additions and 6 deletions

View File

@ -1344,7 +1344,6 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
return NO;
}
#warning rename to match priorities
- (NSSet *) filePrioritiesForIndexes: (NSIndexSet *) indexSet
{
BOOL low = NO, normal = NO, high = NO;

View File

@ -357,9 +357,10 @@
NSRect rect;
Torrent * torrent;
NSImage * image;
BOOL smallView = [fDefaults boolForKey: @"SmallView"];
[super drawRect: r];
int i;
for (i = 0; i < [fTorrents count]; i++)
{
@ -393,9 +394,8 @@
[image compositeToPoint: NSMakePoint(rect.origin.x, NSMaxY(rect)) operation: NSCompositeSourceOver];
//action icon
if (![fDefaults boolForKey: @"SmallView"])
if (!smallView)
{
#warning make change
rect = [self actionRectForRow: i];
image = NSPointInRect(fClickPoint, rect) ? fActionOnIcon : fActionOffIcon;
[image compositeToPoint: NSMakePoint(rect.origin.x, NSMaxY(rect)) operation: NSCompositeSourceOver];
@ -456,7 +456,6 @@
NSRect cellRect = [self frameOfCellAtColumn: [self columnWithIdentifier: @"Torrent"] row: row];
#warning constant
return NSMakeRect(cellRect.origin.x + PADDING +
([[[fTorrents objectAtIndex: row] iconFlipped] size].width - ACTION_BUTTON_WIDTH) * 0.5,
cellRect.origin.y + ACTION_BUTTON_TO_TOP, ACTION_BUTTON_WIDTH, ACTION_BUTTON_HEIGHT);