diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-27 16:40:28 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-27 16:40:56 +0200 |
commit | 7b51b1195ee2427a5149d6d63b938488422ad871 (patch) | |
tree | 0ff0bc0ae8ffed6124df7af6f1709f7f534e14dd /src/shared/cplusplus | |
parent | afdd933ff3bd9c404f55ea8bfd7b1839bbb4a97a (diff) | |
download | qt-creator-7b51b1195ee2427a5149d6d63b938488422ad871.tar.gz |
Set the end of the template's scope.
Diffstat (limited to 'src/shared/cplusplus')
-rw-r--r-- | src/shared/cplusplus/Bind.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/cplusplus/Bind.cpp b/src/shared/cplusplus/Bind.cpp index 6c0319538c..6aa04592aa 100644 --- a/src/shared/cplusplus/Bind.cpp +++ b/src/shared/cplusplus/Bind.cpp @@ -2063,7 +2063,7 @@ bool Bind::visit(TemplateDeclarationAST *ast) { Template *templ = control()->newTemplate(ast->firstToken(), 0); templ->setStartOffset(tokenAt(ast->firstToken()).begin()); - templ->setStartOffset(tokenAt(ast->lastToken() - 1).end()); + templ->setEndOffset(tokenAt(ast->lastToken() - 1).end()); ast->symbol = templ; Scope *previousScope = switchScope(templ); |