diff --git a/Source/GSRunLoopWatcher.m b/Source/GSRunLoopWatcher.m index 104018e..3daf9ad 100644 --- a/Source/GSRunLoopWatcher.m +++ b/Source/GSRunLoopWatcher.m @@ -125,13 +125,14 @@ static GSDispatchWatcher* _dispatchWatcherSharedInstance; if (_dispatchWatcherSharedInstance == nil) { + // assignment and return on first allocation _dispatchWatcherSharedInstance = [super allocWithZone:zone]; - return _dispatchWatcherSharedInstance; // assignment and return on first allocation + return _dispatchWatcherSharedInstance; } - return nil; //on subsequent allocation attempts return nil + return nil; // on subsequent allocation attempts return nil } -- (id)copyWithZone:(NSZone *)zone +- (id)copyWithZone:(NSZone *) __attribute__((unused)) zone { return self; } @@ -143,12 +144,12 @@ static GSDispatchWatcher* _dispatchWatcherSharedInstance; - (NSUInteger)retainCount { - return UINT_MAX; //denotes an object that cannot be released + return UINT_MAX; // denotes an object that cannot be released } - (oneway void)release { - //do nothing + // do nothing } - (id)autorelease