aboutsummaryrefslogtreecommitdiffstats
path: root/Source/MGTemplateStandardMarkers.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2014-12-13 03:01:19 +0100
committerMax <post@wickenrode.com>2014-12-13 03:04:09 +0100
commit4ad26db45b46d8267fcb5203571b81bc8949b853 (patch)
tree76c191186f4ce342964bf3c4bbf23d0fce05e063 /Source/MGTemplateStandardMarkers.m
parent33fd38501be11213968536a0c540cee7061e42a9 (diff)
downloadsequelpro-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/MGTemplateStandardMarkers.m')
-rw-r--r--Source/MGTemplateStandardMarkers.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/MGTemplateStandardMarkers.m b/Source/MGTemplateStandardMarkers.m
index 3421abe3..db765aef 100644
--- a/Source/MGTemplateStandardMarkers.m
+++ b/Source/MGTemplateStandardMarkers.m
@@ -231,7 +231,7 @@
// Disable output for this block.
*blockStarted = YES;
NSMutableDictionary *stackFrame = [NSMutableDictionary dictionaryWithObjectsAndKeys:
- [NSNumber numberWithBool:YES], FOR_STACK_DISABLED_OUTPUT,
+ @YES, FOR_STACK_DISABLED_OUTPUT,
[NSValue valueWithRange:markerRange], STACK_START_MARKER_RANGE,
[NSValue valueWithRange:*nextRange], STACK_START_REMAINING_RANGE,
nil];
@@ -426,7 +426,7 @@
}
// Note that we've now seen the else marker.
- [frame setObject:[NSNumber numberWithBool:YES] forKey:IF_ELSE_SEEN];
+ [frame setObject:@YES forKey:IF_ELSE_SEEN];
}
}