aboutsummaryrefslogtreecommitdiffstats
path: root/Source/MGTemplateEngine.m
diff options
context:
space:
mode:
authorsqlprodev <sqlprodev@northofthree.com>2011-03-01 21:00:55 +0000
committersqlprodev <sqlprodev@northofthree.com>2011-03-01 21:00:55 +0000
commitcd09dcd69813400b098b9f019a558efb11e6c8b2 (patch)
tree930e4c45038ec9f0258106608ad47af34fec8ca8 /Source/MGTemplateEngine.m
parentf1db829abc716f0cc498c0dabe8ecb1375dfa312 (diff)
downloadsequelpro-cd09dcd69813400b098b9f019a558efb11e6c8b2.tar.gz
sequelpro-cd09dcd69813400b098b9f019a558efb11e6c8b2.tar.bz2
sequelpro-cd09dcd69813400b098b9f019a558efb11e6c8b2.zip
fixed compiler warnings
Diffstat (limited to 'Source/MGTemplateEngine.m')
-rw-r--r--Source/MGTemplateEngine.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/MGTemplateEngine.m b/Source/MGTemplateEngine.m
index 89ea3a1d..17acae65 100644
--- a/Source/MGTemplateEngine.m
+++ b/Source/MGTemplateEngine.m
@@ -60,7 +60,7 @@
- (id)init
{
- if (self = [super init]) {
+ if ((self = [super init])) {
_openBlocksStack = [[NSMutableArray alloc] init];
_globals = [[NSMutableDictionary alloc] init];
_markers = [[NSMutableDictionary alloc] init];
@@ -249,7 +249,7 @@
// Attempt to find firstVar in stack variables.
NSEnumerator *stack = [_openBlocksStack reverseObjectEnumerator];
NSDictionary *stackFrame = nil;
- while (stackFrame = [stack nextObject]) {
+ while ((stackFrame = [stack nextObject])) {
NSDictionary *vars = [stackFrame objectForKey:BLOCK_VARIABLES_KEY];
if (vars && [vars objectForKey:firstVar]) {
currObj = vars;