summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/CheckStatement.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-06-17 16:08:01 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2009-06-17 16:08:33 +0200
commitc222f2aa27a5d3cbc4583d2ae8ee60d623aaacc4 (patch)
treecadc4126fe8e2c5b89a996024dc9ce716652a626 /src/shared/cplusplus/CheckStatement.cpp
parenta29864ef012d98ad6773ba4690704b731c79c7da (diff)
downloadqt-creator-c222f2aa27a5d3cbc4583d2ae8ee60d623aaacc4.tar.gz
Some cleanup in the AST nodes.
Diffstat (limited to 'src/shared/cplusplus/CheckStatement.cpp')
-rw-r--r--src/shared/cplusplus/CheckStatement.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/cplusplus/CheckStatement.cpp b/src/shared/cplusplus/CheckStatement.cpp
index 06651fae75..433dc5c873 100644
--- a/src/shared/cplusplus/CheckStatement.cpp
+++ b/src/shared/cplusplus/CheckStatement.cpp
@@ -104,8 +104,8 @@ bool CheckStatement::visit(CompoundStatementAST *ast)
ast->symbol = block;
_scope->enterSymbol(block);
Scope *previousScope = switchScope(block->members());
- for (StatementAST *it = ast->statements; it; it = it->next) {
- semantic()->check(it, _scope);
+ for (StatementListAST *it = ast->statements; it; it = it->next) {
+ semantic()->check(it->statement, _scope);
}
(void) switchScope(previousScope);
return false;