Implement fred's suggestions

This commit is contained in:
Gregory John Casamento 2019-08-06 10:04:17 -04:00
parent 8d35169311
commit 2743a4e3fb

View file

@ -542,7 +542,7 @@ static NSArray *empty = nil;
self = [super init];
if(self != nil)
{
_executionBlocks = [[NSMutableArray alloc] initWithCapacity: 10];
_executionBlocks = [[NSMutableArray alloc] initWithCapacity: 1];
}
return self;
}
@ -556,7 +556,7 @@ static NSArray *empty = nil;
// Managing the blocks in the Operation
+ (instancetype)blockOperationWithBlock: (GSBlockOperationBlock)block
{
NSBlockOperation *op = [[NSBlockOperation alloc] init];
NSBlockOperation *op = [[self alloc] init];
[op addExecutionBlock: block];
return op;
}