summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/CheckDeclarator.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-11-10 14:33:51 +0100
committerRoberto Raggi <roberto.raggi@nokia.com>2009-11-10 16:20:12 +0100
commit24b6c858ebc3a16e9a82c0ea6e8fc6743f0e3229 (patch)
treecf837fd4dfbf50cdc00ac9c6e3b8ff6b86649cef /src/shared/cplusplus/CheckDeclarator.cpp
parenta7219736b6081888a35aa5f58fcec4abc8dfad44 (diff)
downloadqt-creator-24b6c858ebc3a16e9a82c0ea6e8fc6743f0e3229.tar.gz
Cleanup postfix declarators.
Diffstat (limited to 'src/shared/cplusplus/CheckDeclarator.cpp')
-rw-r--r--src/shared/cplusplus/CheckDeclarator.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/shared/cplusplus/CheckDeclarator.cpp b/src/shared/cplusplus/CheckDeclarator.cpp
index f89f796fe4..d32926e2eb 100644
--- a/src/shared/cplusplus/CheckDeclarator.cpp
+++ b/src/shared/cplusplus/CheckDeclarator.cpp
@@ -205,7 +205,6 @@ bool CheckDeclarator::visit(FunctionDeclaratorAST *ast)
fun->setVolatile(true);
}
- accept(ast->next);
return false;
}
@@ -215,7 +214,6 @@ bool CheckDeclarator::visit(ArrayDeclaratorAST *ast)
FullySpecifiedType exprTy = semantic()->check(ast->expression, _scope);
FullySpecifiedType arrTy(ty);
_fullySpecifiedType = ty;
- accept(ast->next);
return false;
}
@@ -226,7 +224,6 @@ bool CheckDeclarator::visit(PointerToMemberAST *ast)
FullySpecifiedType ty(ptrTy);
_fullySpecifiedType = ty;
applyCvQualifiers(ast->cv_qualifier_seq);
- accept(ast->next);
return false;
}
@@ -236,7 +233,6 @@ bool CheckDeclarator::visit(PointerAST *ast)
FullySpecifiedType ty(ptrTy);
_fullySpecifiedType = ty;
applyCvQualifiers(ast->cv_qualifier_seq);
- accept(ast->next);
return false;
}
@@ -245,7 +241,6 @@ bool CheckDeclarator::visit(ReferenceAST *ast)
ReferenceType *refTy = control()->referenceType(_fullySpecifiedType);
FullySpecifiedType ty(refTy);
_fullySpecifiedType = ty;
- accept(ast->next);
return false;
}