diff options
author | Max <post@wickenrode.com> | 2014-12-13 18:02:01 +0100 |
---|---|---|
committer | Max <post@wickenrode.com> | 2014-12-13 18:02:01 +0100 |
commit | 876dde21d97897ad4ee98aa0d6b11898282982ce (patch) | |
tree | 49dfcdf83e94937bdc7a3f09ca82ccacec3a5aed /Source/SPQueryDocumentsController.m | |
parent | 994057ae2a82dc110a385ced4239ce49cc0601f8 (diff) | |
download | sequelpro-876dde21d97897ad4ee98aa0d6b11898282982ce.tar.gz sequelpro-876dde21d97897ad4ee98aa0d6b11898282982ce.tar.bz2 sequelpro-876dde21d97897ad4ee98aa0d6b11898282982ce.zip |
Change [NSArray arrayWithObject:] to @[] literal
Note: [NSArray arrayWithObjects:...,nil] is left unchanged as that could possibly cause a NPE if converted to @[]
Diffstat (limited to 'Source/SPQueryDocumentsController.m')
-rw-r--r-- | Source/SPQueryDocumentsController.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/SPQueryDocumentsController.m b/Source/SPQueryDocumentsController.m index e42a734b..e4689c41 100644 --- a/Source/SPQueryDocumentsController.m +++ b/Source/SPQueryDocumentsController.m @@ -312,7 +312,7 @@ } #endif - return [NSArray array]; + return @[]; } /** @@ -355,7 +355,7 @@ - (NSArray *)queryFavoritesForFileURL:(NSURL *)fileURL andTabTrigger:(NSString *)tabTrigger includeGlobals:(BOOL)includeGlobals { - if (![tabTrigger length]) return [NSArray array]; + if (![tabTrigger length]) return @[]; NSMutableArray *result = [[NSMutableArray alloc] init]; @@ -390,7 +390,7 @@ */ - (NSArray*)functionList { - return (completionFunctionList != nil && [completionFunctionList count]) ? completionFunctionList : [NSArray array]; + return (completionFunctionList != nil && [completionFunctionList count]) ? completionFunctionList : @[]; } /** @@ -398,7 +398,7 @@ */ - (NSArray*)keywordList { - return (completionKeywordList != nil && [completionKeywordList count]) ? completionKeywordList : [NSArray array]; + return (completionKeywordList != nil && [completionKeywordList count]) ? completionKeywordList : @[]; } /** |