diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-13 10:08:34 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-13 10:09:45 +0200 |
commit | 6b5b9be79c549d4a64580d3e5b9c973098c80b28 (patch) | |
tree | 548c00c8f8c086fe152482c5d8a706767e44b6ab /src/shared/cplusplus/Bind.cpp | |
parent | 62d6a977f7a8b80f5deae35821f64921ad776692 (diff) | |
download | qt-creator-6b5b9be79c549d4a64580d3e5b9c973098c80b28.tar.gz |
Returns the newly computed type.
Diffstat (limited to 'src/shared/cplusplus/Bind.cpp')
-rw-r--r-- | src/shared/cplusplus/Bind.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared/cplusplus/Bind.cpp b/src/shared/cplusplus/Bind.cpp index 93904688ac..f1d627b88f 100644 --- a/src/shared/cplusplus/Bind.cpp +++ b/src/shared/cplusplus/Bind.cpp @@ -209,7 +209,6 @@ FullySpecifiedType Bind::declarator(DeclaratorAST *ast, const FullySpecifiedType if (! ast) return type; - std::swap(_declaratorId, declaratorId); for (SpecifierListAST *it = ast->attribute_list; it; it = it->next) { type = this->specifier(it->value, type); @@ -227,7 +226,7 @@ FullySpecifiedType Bind::declarator(DeclaratorAST *ast, const FullySpecifiedType // unsigned equals_token = ast->equals_token; ExpressionTy initializer = this->expression(ast->initializer); std::swap(_declaratorId, declaratorId); - return init; + return type; } bool Bind::visit(QtPropertyDeclarationItemAST *ast) |