Permalink
Browse files

Use symbolic constants, that's what they're for ;-)

  • Loading branch information...
1 parent 3d352c6 commit b4210d8f6148202f5bc95707c2b2e622ad7ef80c @uliwitness uliwitness committed Feb 21, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 SUSystemProfiler.m
View
@@ -50,9 +50,9 @@ - (NSMutableArray *)systemProfileArrayForHost:(SUHost *)host
cpuType = value;
NSString *visibleCPUType;
switch(value) {
- case 7: visibleCPUType=@"Intel"; break;
- case 18: visibleCPUType=@"PowerPC"; break;
- default: visibleCPUType=@"Unknown"; break;
+ case CPU_TYPE_X86: visibleCPUType = @"Intel"; break;
+ case CPU_TYPE_POWERPC: visibleCPUType = @"PowerPC"; break;
+ default: visibleCPUType = @"Unknown"; break;
}
[profileArray addObject:[NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"cputype",@"CPU Type", [NSNumber numberWithInt:value], visibleCPUType,nil] forKeys:profileDictKeys]];
}

0 comments on commit b4210d8

Please sign in to comment.