summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/ASTMatcher.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2010-01-09 18:00:25 +0100
committerErik Verbruggen <erik.verbruggen@nokia.com>2010-01-11 09:29:15 +0100
commit0c17d538759872ba7d35e468ffe55d813b5e9178 (patch)
tree99a2971e6c0d78b401844756dd8b7ab925365723 /src/shared/cplusplus/ASTMatcher.cpp
parent9052bd279fb82430af16015bf929fd7813a36269 (diff)
downloadqt-creator-0c17d538759872ba7d35e468ffe55d813b5e9178.tar.gz
Fixed semantic check for ObjC fast-enumeration for-loops, then merged it with the semantic check for the foreach.
Diffstat (limited to 'src/shared/cplusplus/ASTMatcher.cpp')
-rw-r--r--src/shared/cplusplus/ASTMatcher.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/cplusplus/ASTMatcher.cpp b/src/shared/cplusplus/ASTMatcher.cpp
index b7920f767f..138950c230 100644
--- a/src/shared/cplusplus/ASTMatcher.cpp
+++ b/src/shared/cplusplus/ASTMatcher.cpp
@@ -2439,9 +2439,9 @@ bool ASTMatcher::match(ObjCFastEnumerationAST *node, ObjCFastEnumerationAST *pat
pattern->rparen_token = node->rparen_token;
- if (! pattern->body_statement)
- pattern->body_statement = node->body_statement;
- else if (! AST::match(node->body_statement, pattern->body_statement, this))
+ if (! pattern->statement)
+ pattern->statement = node->statement;
+ else if (! AST::match(node->statement, pattern->statement, this))
return false;
return true;