Ben Copsey

iPhone sample: Fix error about shadowing a global declaration

@@ -70,14 +70,14 @@ @@ -70,14 +70,14 @@
70 [[UIApplication sharedApplication] cancelAllLocalNotifications]; 70 [[UIApplication sharedApplication] cancelAllLocalNotifications];
71 71
72 // Create a new notification 72 // Create a new notification
73 - UILocalNotification* alarm = [[[UILocalNotification alloc] init] autorelease]; 73 + UILocalNotification *notification = [[[UILocalNotification alloc] init] autorelease];
74 - if (alarm) { 74 + if (notification) {
75 - [alarm setFireDate:[NSDate date]]; 75 + [notification setFireDate:[NSDate date]];
76 - [alarm setTimeZone:[NSTimeZone defaultTimeZone]]; 76 + [notification setTimeZone:[NSTimeZone defaultTimeZone]];
77 - [alarm setRepeatInterval:0]; 77 + [notification setRepeatInterval:0];
78 - [alarm setSoundName:@"alarmsound.caf"]; 78 + [notification setSoundName:@"alarmsound.caf"];
79 - [alarm setAlertBody:@"Boom!\r\n\r\nUpload is finished!"]; 79 + [notification setAlertBody:@"Boom!\r\n\r\nUpload is finished!"];
80 - [[UIApplication sharedApplication] scheduleLocalNotification:alarm]; 80 + [[UIApplication sharedApplication] scheduleLocalNotification:notification];
81 } 81 }
82 #endif 82 #endif
83 } 83 }