mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Implement fred's suggestions
This commit is contained in:
parent
8d35169311
commit
2743a4e3fb
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue