Fix [[ alloc] init]

This commit is contained in:
Sergey Bugaev 2018-01-01 23:33:38 +03:00
parent 71a3529ac6
commit cbfcc189c3
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ enum {
// Construct a new array of just the visible items
if( _visibleArray == NULL )
_visibleArray = [[NSMutableArray init] alloc];
_visibleArray = [[NSMutableArray alloc] init];
[_visibleArray removeAllObjects];

View File

@ -46,7 +46,7 @@ static const float kMenuInitialClickThreshold = .3f;
{
NSArray * items = [[self menu] itemArray];
NSMutableArray *visibleArray = [[[NSMutableArray init] alloc] autorelease];
NSMutableArray *visibleArray = [[[NSMutableArray alloc] init] autorelease];
for(NSMenuItem *item in items) {
if( ![item isHidden]) {