From b4210d8f6148202f5bc95707c2b2e622ad7ef80c Mon Sep 17 00:00:00 2001 From: Uli Kusterer Date: Sun, 21 Feb 2010 14:06:49 +0100 Subject: [PATCH] Use symbolic constants, that's what they're for ;-) --- SUSystemProfiler.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SUSystemProfiler.m b/SUSystemProfiler.m index 47d5909c..7263e8be 100644 --- a/SUSystemProfiler.m +++ b/SUSystemProfiler.m @@ -50,9 +50,9 @@ 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]]; }