diff --git a/macosx/FileNameCell.m b/macosx/FileNameCell.m index 78b8a8f2e..6d0cf646e 100644 --- a/macosx/FileNameCell.m +++ b/macosx/FileNameCell.m @@ -226,9 +226,8 @@ Torrent * torrent = [(FileOutlineView *)[self controlView] torrent]; FileListNode * node = (FileListNode *)[self objectValue]; - NSString * percentString; CGFloat progress = [torrent fileProgress: node]; - percentString = progress == 1.0f ? @"100%" : [NSString localizedStringWithFormat: @"%.2f%%", progress * 100.0f]; + NSString * percentString = progress == 1.0f ? @"100%" : [NSString localizedStringWithFormat: @"%.2f%%", progress * 100.0f]; NSString * status = [NSString localizedStringWithFormat: NSLocalizedString(@"%@ of %@", diff --git a/macosx/TorrentCell.m b/macosx/TorrentCell.m index 6765bb58b..97f1a5d35 100644 --- a/macosx/TorrentCell.m +++ b/macosx/TorrentCell.m @@ -433,10 +433,7 @@ //text color NSColor * titleColor, * statusColor; if ([self backgroundStyle] == NSBackgroundStyleDark) - { - titleColor = [NSColor whiteColor]; - statusColor = [NSColor whiteColor]; - } + titleColor = statusColor = [NSColor whiteColor]; else { titleColor = [NSColor controlTextColor];