From c222f2aa27a5d3cbc4583d2ae8ee60d623aaacc4 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Wed, 17 Jun 2009 16:08:01 +0200 Subject: Some cleanup in the AST nodes. --- src/shared/cplusplus/CheckStatement.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shared/cplusplus/CheckStatement.cpp') 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; -- cgit v1.2.1