diff options
author | Max <post@wickenrode.com> | 2014-12-13 03:01:19 +0100 |
---|---|---|
committer | Max <post@wickenrode.com> | 2014-12-13 03:04:09 +0100 |
commit | 4ad26db45b46d8267fcb5203571b81bc8949b853 (patch) | |
tree | 76c191186f4ce342964bf3c4bbf23d0fce05e063 /Source/SPQueryFavoriteManager.m | |
parent | 33fd38501be11213968536a0c540cee7061e42a9 (diff) | |
download | sequelpro-4ad26db45b46d8267fcb5203571b81bc8949b853.tar.gz sequelpro-4ad26db45b46d8267fcb5203571b81bc8949b853.tar.bz2 sequelpro-4ad26db45b46d8267fcb5203571b81bc8949b853.zip |
Reformatting code for modern ObjC
Replaced all [NSNumber numberWithBool:YES/NO] with the @YES/@NO literals.
Also replaced some TRUE/FALSE with their YES/NO counterparts.
Diffstat (limited to 'Source/SPQueryFavoriteManager.m')
-rw-r--r-- | Source/SPQueryFavoriteManager.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPQueryFavoriteManager.m b/Source/SPQueryFavoriteManager.m index 97f7790b..a7147646 100644 --- a/Source/SPQueryFavoriteManager.m +++ b/Source/SPQueryFavoriteManager.m @@ -422,7 +422,7 @@ // Identify the tab completion index NSRange snippetNumberRange = [queryString rangeOfRegex:snipRegex options:RKLNoOptions inRange:matchedRange capture:1L error:NULL]; NSInteger snippetNumber = [[queryString substringWithRange:snippetNumberRange] integerValue]; - [snippetNumbers setObject:[NSNumber numberWithBool:YES] forKey:[NSNumber numberWithInteger:snippetNumber]]; + [snippetNumbers setObject:@YES forKey:[NSNumber numberWithInteger:snippetNumber]]; rangeStart = matchedRange.location + matchedRange.length; } @@ -919,7 +919,7 @@ [spfdata setObject:[NSNumber numberWithInteger:1] forKey:@"version"]; [spfdata setObject:@"query favorites" forKey:@"format"]; - [spfdata setObject:[NSNumber numberWithBool:NO] forKey:@"encrypted"]; + [spfdata setObject:@NO forKey:@"encrypted"]; NSIndexSet *indexes = [favoritesTableView selectedRowIndexes]; |