Silence some new warnings with LLVM 3.0/Xcode 4.2
This commit is contained in:
parent
4d74095591
commit
995d754baf
|
@ -1999,7 +1999,7 @@
|
|||
isa = PBXProject;
|
||||
attributes = {
|
||||
BuildIndependentTargetsInParallel = YES;
|
||||
LastUpgradeCheck = 0410;
|
||||
LastUpgradeCheck = 0420;
|
||||
ORGANIZATIONNAME = "The Transmission Project";
|
||||
};
|
||||
buildConfigurationList = 4DF0C59A089918A300DD8943 /* Build configuration list for PBXProject "Transmission" */;
|
||||
|
|
|
@ -1255,7 +1255,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
const NSInteger selected = [torrents count];
|
||||
if (selected == 1)
|
||||
{
|
||||
NSString * torrentName = [[torrents objectAtIndex: 0] name];
|
||||
NSString * torrentName = [(Torrent *)[torrents objectAtIndex: 0] name];
|
||||
|
||||
if (deleteData)
|
||||
title = [NSString stringWithFormat:
|
||||
|
@ -1379,7 +1379,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
NSString * message, * info;
|
||||
if ([torrents count] == 1)
|
||||
{
|
||||
NSString * torrentName = [[torrents objectAtIndex: 0] name];
|
||||
NSString * torrentName = [(Torrent *)[torrents objectAtIndex: 0] name];
|
||||
message = [NSString stringWithFormat: NSLocalizedString(@"Are you sure you want to remove \"%@\" from the transfer list?",
|
||||
"Remove completed confirm panel -> title"), torrentName];
|
||||
|
||||
|
@ -1435,7 +1435,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
NSInteger count = [torrents count];
|
||||
if (count == 1)
|
||||
[panel setMessage: [NSString stringWithFormat: NSLocalizedString(@"Select the new folder for \"%@\".",
|
||||
"Move torrent -> select destination folder"), [[torrents objectAtIndex: 0] name]]];
|
||||
"Move torrent -> select destination folder"), [(Torrent *)[torrents objectAtIndex: 0] name]]];
|
||||
else
|
||||
[panel setMessage: [NSString stringWithFormat: NSLocalizedString(@"Select the new folder for %d data files.",
|
||||
"Move torrent -> select destination folder"), count]];
|
||||
|
@ -1782,7 +1782,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
- (void) setSort: (id) sender
|
||||
{
|
||||
NSString * sortType;
|
||||
switch ([sender tag])
|
||||
switch ([(NSMenuItem *)sender tag])
|
||||
{
|
||||
case SORT_ORDER_TAG:
|
||||
sortType = SORT_ORDER;
|
||||
|
@ -1810,7 +1810,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
sortType = SORT_SIZE;
|
||||
break;
|
||||
default:
|
||||
NSAssert1(NO, @"Unknown sort tag received: %d", [sender tag]);
|
||||
NSAssert1(NO, @"Unknown sort tag received: %d", [(NSMenuItem *)sender tag]);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1832,7 +1832,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
|
||||
- (void) setSortReverse: (id) sender
|
||||
{
|
||||
const BOOL setReverse = [sender tag] == SORT_DESC_TAG;
|
||||
const BOOL setReverse = [(NSMenuItem *)sender tag] == SORT_DESC_TAG;
|
||||
if (setReverse != [fDefaults boolForKey: @"SortReverse"])
|
||||
{
|
||||
[fDefaults setBool: setReverse forKey: @"SortReverse"];
|
||||
|
@ -2235,7 +2235,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
{
|
||||
[fTableView removeCollapsedGroup: [torrent groupValue]]; //remove old collapsed group
|
||||
|
||||
[torrent setGroupValue: [sender tag]];
|
||||
[torrent setGroupValue: [(NSMenuItem *)sender tag]];
|
||||
}
|
||||
|
||||
[self applyFilter];
|
||||
|
|
|
@ -333,7 +333,7 @@ typedef enum
|
|||
{
|
||||
NSString * path = [fTorrent fileLocation: item];
|
||||
if (!path)
|
||||
path = [[item path] stringByAppendingPathComponent: [item name]];
|
||||
path = [[(FileListNode *)item path] stringByAppendingPathComponent: [(FileListNode *)item name]];
|
||||
return path;
|
||||
}
|
||||
else if ([ident isEqualToString: @"Check"])
|
||||
|
|
|
@ -184,8 +184,9 @@
|
|||
return [tableView rowHeight];
|
||||
}
|
||||
|
||||
- (BOOL)tableView:(NSTableView *)aTableView shouldEditTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex
|
||||
- (BOOL) tableView: (NSTableView *) tableView shouldEditTableColumn: (NSTableColumn *) tableColumn row: (NSInteger) row
|
||||
{
|
||||
//don't allow tier row to be edited by double-click
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
|
|
@ -784,7 +784,7 @@
|
|||
|
||||
- (NSAttributedString *) attributedTitle
|
||||
{
|
||||
NSString * title = [[self representedObject] name];
|
||||
NSString * title = [(Torrent *)[self representedObject] name];
|
||||
return [[[NSAttributedString alloc] initWithString: title attributes: fTitleAttributes] autorelease];
|
||||
}
|
||||
|
||||
|
|
|
@ -202,7 +202,7 @@
|
|||
|
||||
- (NSString *) outlineView: (NSOutlineView *) outlineView typeSelectStringForTableColumn: (NSTableColumn *) tableColumn item: (id) item
|
||||
{
|
||||
return [item isKindOfClass: [Torrent class]] ? [item name]
|
||||
return [item isKindOfClass: [Torrent class]] ? [(Torrent *)item name]
|
||||
: [[self preparedCellAtColumn: [self columnWithIdentifier: @"Group"] row: [self rowForItem: item]] stringValue];
|
||||
}
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ NSMutableSet * fTrackerIconLoading;
|
|||
|
||||
+ (void) initialize
|
||||
{
|
||||
fTrackerIconCache = [[NSMutableDictionary alloc] init];
|
||||
fTrackerIconCache = [[NSCache alloc] init];
|
||||
fTrackerIconLoading = [[NSMutableSet alloc] init];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue