From 5c2e25be0f663ee982cded193cbdacc2797d5483 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 10 Dec 2008 18:06:08 +0000 Subject: Remove warning. --- Source/TableDump.m | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Source/TableDump.m') diff --git a/Source/TableDump.m b/Source/TableDump.m index 277ed3e7..7460d982 100644 --- a/Source/TableDump.m +++ b/Source/TableDump.m @@ -1825,9 +1825,11 @@ objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex { + id returnObject = nil; + if ( aTableView == fieldMappingTableView ) { if ([[aTableColumn identifier] isEqualToString:@"field"]) { - return [[tableSourceInstance fieldNames] objectAtIndex:rowIndex]; + returnObject = [[tableSourceInstance fieldNames] objectAtIndex:rowIndex]; } else if ([[aTableColumn identifier] isEqualToString:@"value"]) { if ([[[aTableColumn dataCell] class] isEqualTo:[NSPopUpButtonCell class]]) { @@ -1836,15 +1838,17 @@ objectValueForTableColumn:(NSTableColumn *)aTableColumn [(NSPopUpButtonCell *)[aTableColumn dataCell] addItemsWithTitles:fieldMappingButtonOptions]; } - return [fieldMappingArray objectAtIndex:rowIndex]; + returnObject = [fieldMappingArray objectAtIndex:rowIndex]; } } else { if ( [[aTableColumn identifier] isEqualToString:@"switch"] ) { - return [[tables objectAtIndex:rowIndex] objectAtIndex:0]; + returnObject = [[tables objectAtIndex:rowIndex] objectAtIndex:0]; } else { - return [[tables objectAtIndex:rowIndex] objectAtIndex:1]; + returnObject = [[tables objectAtIndex:rowIndex] objectAtIndex:1]; } } + + return returnObject; } - (void)tableView:(NSTableView *)aTableView -- cgit v1.2.3