Kaydet (Commit) 817b026b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:loopvartoosmall

Change-Id: Idd385c764778313bfb419a04ca7a3884b78e88f6
üst 2f2296d2
......@@ -92,15 +92,13 @@
}
- (void) setListeningToRemote: (BOOL) value {
unsigned int i;
for(i=0; i < [remoteControls count]; i++) {
for(NSUInteger i=0; i < [remoteControls count]; i++) {
[[remoteControls objectAtIndex: i] setListeningToRemote: value];
}
if (value && value != [self isListeningToRemote]) [self performSelector:@selector(reset) withObject:nil afterDelay:0.01];
}
- (BOOL) isListeningToRemote {
unsigned int i;
for(i=0; i < [remoteControls count]; i++) {
for(NSUInteger i=0; i < [remoteControls count]; i++) {
if ([[remoteControls objectAtIndex: i] isListeningToRemote]) {
return YES;
}
......@@ -112,8 +110,7 @@
#ifdef DEBUG
NSLog(@"Apple Remote: start listening to events... ");
#endif
unsigned int i;
for(i=0; i < [remoteControls count]; i++) {
for(NSUInteger i=0; i < [remoteControls count]; i++) {
[[remoteControls objectAtIndex: i] startListening: sender];
}
}
......@@ -121,23 +118,20 @@
#ifdef DEBUG
NSLog(@"Apple Remote: stopListening to events... ");
#endif
unsigned int i;
for(i=0; i < [remoteControls count]; i++) {
for(NSUInteger i=0; i < [remoteControls count]; i++) {
[[remoteControls objectAtIndex: i] stopListening: sender];
}
}
- (BOOL) isOpenInExclusiveMode {
BOOL mode = YES;
unsigned int i;
for(i=0; i < [remoteControls count]; i++) {
for(NSUInteger i=0; i < [remoteControls count]; i++) {
mode = mode && ([[remoteControls objectAtIndex: i] isOpenInExclusiveMode]);
}
return mode;
}
- (void) setOpenInExclusiveMode: (BOOL) value {
unsigned int i;
for(i=0; i < [remoteControls count]; i++) {
for(NSUInteger i=0; i < [remoteControls count]; i++) {
[[remoteControls objectAtIndex: i] setOpenInExclusiveMode:value];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment