Skip to content

Commit

Permalink
Identation & bracket position changes
Browse files Browse the repository at this point in the history
  • Loading branch information
atmaxinger committed Sep 15, 2014
1 parent 5078735 commit aea2b09
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions SheepShaver/src/MacOSX/Launcher/VMSettingsController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,21 @@ - (int) numberOfRowsInTableView: (NSTableView *) table

- (id) tableView: (NSTableView *) table objectValueForTableColumn: (NSTableColumn *) col row: (int) row
{
DiskType *d = (DiskType*)[diskArray objectAtIndex:row];
DiskType *d = (DiskType*)[diskArray objectAtIndex:row];

if([[col identifier] isEqualTo:@"isCDROMcol"])
{
return [NSString stringWithFormat:@"%d", [d isCDROM]];
}
if([[col identifier] isEqualTo:@"isCDROMcol"]) {
return [NSString stringWithFormat:@"%d", [d isCDROM]];
}

return [d path];
return [d path];
}

-(void)tableView:(NSTableView *)tableView setObjectValue:(id)object forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
{
if ([[tableColumn identifier] isEqual:@"isCDROMcol"]) {
DiskType *d = (DiskType*)[diskArray objectAtIndex:row];
[d setIsCDROM:![d isCDROM]];
}
if ([[tableColumn identifier] isEqual:@"isCDROMcol"]) {
DiskType *d = (DiskType*)[diskArray objectAtIndex:row];
[d setIsCDROM:![d isCDROM]];
}
}

static NSString *getStringFromPrefs(const char *key)
Expand Down

0 comments on commit aea2b09

Please sign in to comment.