mirror of
https://github.com/transmission/transmission
synced 2025-02-22 06:00:41 +00:00
get rid of some warnings
This commit is contained in:
parent
4d1403fc21
commit
d69bc3798f
2 changed files with 4 additions and 6 deletions
|
@ -1344,7 +1344,6 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
#warning rename to match priorities
|
|
||||||
- (NSSet *) filePrioritiesForIndexes: (NSIndexSet *) indexSet
|
- (NSSet *) filePrioritiesForIndexes: (NSIndexSet *) indexSet
|
||||||
{
|
{
|
||||||
BOOL low = NO, normal = NO, high = NO;
|
BOOL low = NO, normal = NO, high = NO;
|
||||||
|
|
|
@ -357,6 +357,7 @@
|
||||||
NSRect rect;
|
NSRect rect;
|
||||||
Torrent * torrent;
|
Torrent * torrent;
|
||||||
NSImage * image;
|
NSImage * image;
|
||||||
|
BOOL smallView = [fDefaults boolForKey: @"SmallView"];
|
||||||
|
|
||||||
[super drawRect: r];
|
[super drawRect: r];
|
||||||
|
|
||||||
|
@ -393,9 +394,8 @@
|
||||||
[image compositeToPoint: NSMakePoint(rect.origin.x, NSMaxY(rect)) operation: NSCompositeSourceOver];
|
[image compositeToPoint: NSMakePoint(rect.origin.x, NSMaxY(rect)) operation: NSCompositeSourceOver];
|
||||||
|
|
||||||
//action icon
|
//action icon
|
||||||
if (![fDefaults boolForKey: @"SmallView"])
|
if (!smallView)
|
||||||
{
|
{
|
||||||
#warning make change
|
|
||||||
rect = [self actionRectForRow: i];
|
rect = [self actionRectForRow: i];
|
||||||
image = NSPointInRect(fClickPoint, rect) ? fActionOnIcon : fActionOffIcon;
|
image = NSPointInRect(fClickPoint, rect) ? fActionOnIcon : fActionOffIcon;
|
||||||
[image compositeToPoint: NSMakePoint(rect.origin.x, NSMaxY(rect)) operation: NSCompositeSourceOver];
|
[image compositeToPoint: NSMakePoint(rect.origin.x, NSMaxY(rect)) operation: NSCompositeSourceOver];
|
||||||
|
@ -456,7 +456,6 @@
|
||||||
|
|
||||||
NSRect cellRect = [self frameOfCellAtColumn: [self columnWithIdentifier: @"Torrent"] row: row];
|
NSRect cellRect = [self frameOfCellAtColumn: [self columnWithIdentifier: @"Torrent"] row: row];
|
||||||
|
|
||||||
#warning constant
|
|
||||||
return NSMakeRect(cellRect.origin.x + PADDING +
|
return NSMakeRect(cellRect.origin.x + PADDING +
|
||||||
([[[fTorrents objectAtIndex: row] iconFlipped] size].width - ACTION_BUTTON_WIDTH) * 0.5,
|
([[[fTorrents objectAtIndex: row] iconFlipped] size].width - ACTION_BUTTON_WIDTH) * 0.5,
|
||||||
cellRect.origin.y + ACTION_BUTTON_TO_TOP, ACTION_BUTTON_WIDTH, ACTION_BUTTON_HEIGHT);
|
cellRect.origin.y + ACTION_BUTTON_TO_TOP, ACTION_BUTTON_WIDTH, ACTION_BUTTON_HEIGHT);
|
||||||
|
|
Loading…
Reference in a new issue