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/CheckDeclarator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/shared/cplusplus/CheckDeclarator.cpp') diff --git a/src/shared/cplusplus/CheckDeclarator.cpp b/src/shared/cplusplus/CheckDeclarator.cpp index 225754521c..aaf324cc21 100644 --- a/src/shared/cplusplus/CheckDeclarator.cpp +++ b/src/shared/cplusplus/CheckDeclarator.cpp @@ -162,9 +162,9 @@ bool CheckDeclarator::visit(FunctionDeclaratorAST *ast) fun->setReturnType(_fullySpecifiedType); if (ast->parameters) { - DeclarationAST *parameter_declarations = ast->parameters->parameter_declarations; - for (DeclarationAST *decl = parameter_declarations; decl; decl = decl->next) { - semantic()->check(decl, fun->arguments()); + DeclarationListAST *parameter_declarations = ast->parameters->parameter_declarations; + for (DeclarationListAST *decl = parameter_declarations; decl; decl = decl->next) { + semantic()->check(decl->declaration, fun->arguments()); } if (ast->parameters->dot_dot_dot_token) -- cgit v1.2.1