diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-01-09 18:00:25 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-01-11 09:29:15 +0100 |
commit | 0c17d538759872ba7d35e468ffe55d813b5e9178 (patch) | |
tree | 99a2971e6c0d78b401844756dd8b7ab925365723 /src/shared/cplusplus/ASTMatcher.cpp | |
parent | 9052bd279fb82430af16015bf929fd7813a36269 (diff) | |
download | qt-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.cpp | 6 |
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; |