From 7b51b1195ee2427a5149d6d63b938488422ad871 Mon Sep 17 00:00:00 2001 From: Roberto Raggi <roberto.raggi@nokia.com> Date: Fri, 27 Aug 2010 16:40:28 +0200 Subject: [PATCH] Set the end of the template's scope. --- src/shared/cplusplus/Bind.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/cplusplus/Bind.cpp b/src/shared/cplusplus/Bind.cpp index 6c0319538c7..6aa04592aaa 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); -- GitLab