From 94600c6cf8f1aaba0c86ac2cbf95d3dcc4a4a049 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Fri, 2 Jan 2009 02:41:54 +0000 Subject: [PATCH] extremely trivial adjustments --- macosx/FileNameCell.m | 3 +-- macosx/TorrentCell.m | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) 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];