trivial coding style fixups

This commit is contained in:
rfm 2024-05-09 12:20:45 +01:00
parent 37b7443b7c
commit 00a95fef78
2 changed files with 18 additions and 18 deletions

View file

@ -116,14 +116,14 @@ DEFINE_BLOCK_TYPE(GSIndexSetEnumerationBlock, void, NSUInteger, BOOL*);
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7,GS_API_LATEST)
DEFINE_BLOCK_TYPE(GSIndexSetRangeEnumerationBlock, void, NSRange, BOOL*);
- (void)enumerateRangesInRange:(NSRange)range
options:(NSEnumerationOptions)opts
usingBlock:(GSIndexSetRangeEnumerationBlock)aBlock;
- (void) enumerateRangesInRange: (NSRange)range
options: (NSEnumerationOptions)opts
usingBlock: (GSIndexSetRangeEnumerationBlock)aBlock;
- (void)enumerateRangesUsingBlock:(GSIndexSetRangeEnumerationBlock)aBlock;
- (void) enumerateRangesUsingBlock: (GSIndexSetRangeEnumerationBlock)aBlock;
- (void)enumerateRangesWithOptions:(NSEnumerationOptions)opts
usingBlock:(GSIndexSetRangeEnumerationBlock)aBlock;
- (void) enumerateRangesWithOptions: (NSEnumerationOptions)opts
usingBlock: (GSIndexSetRangeEnumerationBlock)aBlock;
#endif
/**

View file

@ -852,16 +852,16 @@ static NSUInteger posForIndex(GSIArray array, NSUInteger index)
return [c initWithIndexSet: self];
}
- (void)enumerateRangesInRange:(NSRange)range
options:(NSEnumerationOptions)opts
usingBlock:(GSIndexSetRangeEnumerationBlock)aBlock
- (void) enumerateRangesInRange: (NSRange)range
options: (NSEnumerationOptions)opts
usingBlock: (GSIndexSetRangeEnumerationBlock)aBlock
{
NSUInteger startArrayIndex;
NSUInteger endArrayIndex;
NSUInteger lastInRange;
NSUInteger i;
NSUInteger c;
BOOL isReverse = opts & NSEnumerationReverse;
NSUInteger startArrayIndex;
NSUInteger endArrayIndex;
NSUInteger lastInRange;
NSUInteger i;
NSUInteger c;
BOOL isReverse = opts & NSEnumerationReverse;
BLOCK_SCOPE BOOL shouldStop = NO;
if ((0 == [self count]) || (NSNotFound == range.location))
@ -925,13 +925,13 @@ static NSUInteger posForIndex(GSIArray array, NSUInteger index)
GS_DISPATCH_TEARDOWN_QUEUE_AND_GROUP_FOR_ENUMERATION(enumQueue, opts)
}
- (void)enumerateRangesUsingBlock:(GSIndexSetRangeEnumerationBlock)aBlock
- (void) enumerateRangesUsingBlock: (GSIndexSetRangeEnumerationBlock)aBlock
{
[self enumerateRangesWithOptions: 0 usingBlock: aBlock];
}
- (void)enumerateRangesWithOptions:(NSEnumerationOptions)opts
usingBlock:(GSIndexSetRangeEnumerationBlock)aBlock
- (void) enumerateRangesWithOptions: (NSEnumerationOptions)opts
usingBlock: (GSIndexSetRangeEnumerationBlock)aBlock
{
NSUInteger firstIndex;
NSUInteger lastIndex;