summaryrefslogtreecommitdiff
path: root/shared/cplusplus/AST.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <qtc-committer@nokia.com>2009-01-06 11:52:58 +0100
committerRoberto Raggi <qtc-committer@nokia.com>2009-01-06 12:15:50 +0100
commit9666488fbe46cdf3a9b834cfaa3a21d28b42aad2 (patch)
tree6b8547b7c28ed7e62e5fbf016d0e62b332e2678b /shared/cplusplus/AST.cpp
parentdc08c07de04fda61f7dca91d712ec1c5f1f842cb (diff)
downloadqt-creator-9666488fbe46cdf3a9b834cfaa3a21d28b42aad2.tar.gz
TemplateArgumentListAST::lastToken().
Diffstat (limited to 'shared/cplusplus/AST.cpp')
-rw-r--r--shared/cplusplus/AST.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/shared/cplusplus/AST.cpp b/shared/cplusplus/AST.cpp
index 6663cbba5d..ad0c65c6c2 100644
--- a/shared/cplusplus/AST.cpp
+++ b/shared/cplusplus/AST.cpp
@@ -2375,9 +2375,8 @@ unsigned TemplateArgumentListAST::firstToken() const
unsigned TemplateArgumentListAST::lastToken() const
{
- assert(0 && "review me");
- for (const TemplateArgumentListAST *it = this; it; it = it->next) {
- if (! it->next)
+ for (TemplateArgumentListAST *it = this; it; it = it->next) {
+ if (! it->next && it->template_argument)
return it->template_argument->lastToken();
}
return 0;