diff options
author | Roberto Raggi <qtc-committer@nokia.com> | 2009-01-02 17:49:33 +0100 |
---|---|---|
committer | Roberto Raggi <qtc-committer@nokia.com> | 2009-01-02 17:49:33 +0100 |
commit | 847f7f9cd10b6c1e6b5a89545b42bf0f08f6fd1c (patch) | |
tree | b47edb05cfb02eec08554cecb1ff21864e083cf7 /shared/cplusplus/AST.cpp | |
parent | f32c63abd2d4319f5254ddf630f72186d66787ae (diff) | |
download | qt-creator-847f7f9cd10b6c1e6b5a89545b42bf0f08f6fd1c.tar.gz |
Implemented DestructorNameAST::lastToken().
Diffstat (limited to 'shared/cplusplus/AST.cpp')
-rw-r--r-- | shared/cplusplus/AST.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shared/cplusplus/AST.cpp b/shared/cplusplus/AST.cpp index 5bfecfc9da..46c14159f9 100644 --- a/shared/cplusplus/AST.cpp +++ b/shared/cplusplus/AST.cpp @@ -1165,8 +1165,9 @@ unsigned DestructorNameAST::firstToken() const unsigned DestructorNameAST::lastToken() const { - assert(0 && "review me"); - return identifier_token + 1; + if (identifier_token) + return identifier_token + 1; + return tilde_token + 1; } void DoStatementAST::accept0(ASTVisitor *visitor) |