diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-11-10 16:47:16 +0100 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-11-10 16:47:16 +0100 |
commit | 0ae2d96a9b9338cfd587775ee9fa7d51944bcffd (patch) | |
tree | 229a2561a2300aa003cda97da37598927d3a3600 /src/libs/cplusplus/CppDocument.cpp | |
parent | e5eb88a31f435eb1dae0f51f969701339a97a79d (diff) | |
download | qt-creator-0ae2d96a9b9338cfd587775ee9fa7d51944bcffd.tar.gz |
Fixed the AST field names.
Diffstat (limited to 'src/libs/cplusplus/CppDocument.cpp')
-rw-r--r-- | src/libs/cplusplus/CppDocument.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/cplusplus/CppDocument.cpp b/src/libs/cplusplus/CppDocument.cpp index 0a6b1f1635..ab8ef268bb 100644 --- a/src/libs/cplusplus/CppDocument.cpp +++ b/src/libs/cplusplus/CppDocument.cpp @@ -413,7 +413,7 @@ void Document::check(CheckMode mode) return; // nothing to do. if (TranslationUnitAST *ast = _translationUnit->ast()->asTranslationUnit()) { - for (DeclarationListAST *decl = ast->declarations; decl; decl = decl->next) { + for (DeclarationListAST *decl = ast->declaration_list; decl; decl = decl->next) { semantic.check(decl->value, globals); } } else if (ExpressionAST *ast = _translationUnit->ast()->asExpression()) { |