Changeset 366 for apps/iphone/superbook/trunk
- Timestamp:
- 05/31/09 10:59:49 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
apps/iphone/superbook/trunk/DotTel_SDK/Classes/RecordNaptr.m
r363 r366 41 41 @end 42 42 43 static NSArray *locationIndicatorHints; 43 44 44 45 @implementation RecordNaptr … … 70 71 - (id)init { 71 72 // Never initialize it empty 72 self = [super init]; 73 isValid = NO; 74 isHidden = NO; 75 return self; 73 return NULL; 76 74 } 77 75 … … 80 78 isValid = NO; 81 79 80 locationIndicatorHints = [[NSArray arrayWithObjects: 81 @"x-mobile", 82 @"x-work", 83 @"x-main", 84 @"x-home", 85 @"x-transit", 86 @"x-prs", 87 nil 88 ] retain]; 82 89 if (!rr) 83 90 return self; … … 179 186 } 180 187 181 - (BOOL)tokenIsLih:(NSString *)token { 182 183 NSArray *locationIndicatorHints = [NSArray arrayWithObjects: 184 @"x-mobile", 185 @"x-work", 186 @"x-main", 187 @"x-home", 188 @"x-transit", 189 @"x-prs", 190 nil 191 ]; 188 - (BOOL)tokenIsLih:(NSString *)token { 192 189 return ([locationIndicatorHints containsObject:token]); 193 190 } … … 359 356 } 360 357 358 #pragma mark ---- cleanup ---- 359 360 - (void)dealloc { 361 [locationIndicatorHints release]; 362 [super dealloc]; 363 } 364 361 365 @end








