summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/CheckStatement.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-11-10 15:15:51 +0100
committerRoberto Raggi <roberto.raggi@nokia.com>2009-11-10 16:20:12 +0100
commit30c67f43dfffc146d67563912dab1e2e586057a8 (patch)
tree422ac8ba55ff12e5e60f3c464524ea252a60b8bd /src/shared/cplusplus/CheckStatement.cpp
parent380bce45276e2bff94dcd4453e5d65ffa53bd385 (diff)
downloadqt-creator-30c67f43dfffc146d67563912dab1e2e586057a8.tar.gz
Cleanup Catch clause
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 f2edeae338..f63aa9270b 100644
--- a/src/shared/cplusplus/CheckStatement.cpp
+++ b/src/shared/cplusplus/CheckStatement.cpp
@@ -273,8 +273,8 @@ bool CheckStatement::visit(SwitchStatementAST *ast)
bool CheckStatement::visit(TryBlockStatementAST *ast)
{
semantic()->check(ast->statement, _scope);
- for (CatchClauseAST *c = ast->catch_clause_seq; c; c = c->next) {
- semantic()->check(c, _scope);
+ for (CatchClauseListAST *it = ast->catch_clause_list; it; it = it->next) {
+ semantic()->check(it->value, _scope);
}
return false;
}