]> granicus.if.org Git - transmission/commitdiff
add some missed type changes
authorMitchell Livingston <livings124@transmissionbt.com>
Tue, 4 Nov 2008 00:34:13 +0000 (00:34 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Tue, 4 Nov 2008 00:34:13 +0000 (00:34 +0000)
macosx/GroupsWindowController.m
macosx/TorrentTableView.m

index 995a736cd5ab4be80e710518a1b8633e2d0db357..3406f6c2eaa160501553df4a007dbb6808f5c821 100644 (file)
@@ -82,7 +82,7 @@ GroupsWindowController * fGroupsWindowInstance = nil;
 - (id) tableView: (NSTableView *) tableView objectValueForTableColumn: (NSTableColumn *) tableColumn row: (NSInteger) row
 {
     GroupsController * groupsController = [GroupsController groups];
-    int groupsIndex = [groupsController indexForRow: row];
+    NSInteger groupsIndex = [groupsController indexForRow: row];
     
     NSString * identifier = [tableColumn identifier];
     if ([identifier isEqualToString: @"Color"])
@@ -126,7 +126,7 @@ GroupsWindowController * fGroupsWindowInstance = nil;
 }
 
 - (NSDragOperation) tableView: (NSTableView *) tableView validateDrop: (id <NSDraggingInfo>) info
-    proposedRow: (int) row proposedDropOperation: (NSTableViewDropOperation) operation
+    proposedRow: (NSInteger) row proposedDropOperation: (NSTableViewDropOperation) operation
 {
     NSPasteboard * pasteboard = [info draggingPasteboard];
     if ([[pasteboard types] containsObject: GROUP_TABLE_VIEW_DATA_TYPE])
@@ -138,7 +138,7 @@ GroupsWindowController * fGroupsWindowInstance = nil;
     return NSDragOperationNone;
 }
 
-- (BOOL) tableView: (NSTableView *) tableView acceptDrop: (id <NSDraggingInfo>) info row: (int) newRow
+- (BOOL) tableView: (NSTableView *) tableView acceptDrop: (id <NSDraggingInfo>) info row: (NSInteger) newRow
     dropOperation: (NSTableViewDropOperation) operation
 {
     NSPasteboard * pasteboard = [info draggingPasteboard];
index 11ba7024563af2b7bdef4777cf9fa143b4135382..234b0608b63826a79f5c6315bd5b393d3506b975 100644 (file)
 //option-command-f will focus the filter bar's search field
 - (void) keyDown: (NSEvent *) event
 {
-    unichar firstChar = [[event charactersIgnoringModifiers] characterAtIndex: 0];
+    const unichar firstChar = [[event charactersIgnoringModifiers] characterAtIndex: 0];
     
     if (firstChar == 'f' && [event modifierFlags] & NSAlternateKeyMask && [event modifierFlags] & NSCommandKeyMask)
         [fController focusFilterField];