From 1e5288e9840e201a00bcb5ca3035d7aa807f1f8d Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Mon, 7 Mar 2011 20:12:52 +0000 Subject: Bring outline view branch up to date with trunk (r3203:r3224). --- Source/MGTemplateEngine.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/MGTemplateEngine.m') 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; -- cgit v1.2.3