diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-13 14:40:23 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-13 14:40:23 +0200 |
commit | 72c806ab34a8fa9a0f4b0509e7d8fc10d4f4408e (patch) | |
tree | b5e5e61afc592bb705f9d8f5ee60b23909b6c7fe /src/shared/cplusplus/Bind.cpp | |
parent | e0544e8d19763d20addbc57c91d4e40ff85109ce (diff) | |
download | qt-creator-72c806ab34a8fa9a0f4b0509e7d8fc10d4f4408e.tar.gz |
Use Token::begin() instead of the member variable `offset'.
Diffstat (limited to 'src/shared/cplusplus/Bind.cpp')
-rw-r--r-- | src/shared/cplusplus/Bind.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/cplusplus/Bind.cpp b/src/shared/cplusplus/Bind.cpp index ddbf370a71..c83f45a60f 100644 --- a/src/shared/cplusplus/Bind.cpp +++ b/src/shared/cplusplus/Bind.cpp @@ -2079,7 +2079,7 @@ unsigned Bind::calculateScopeStart(ObjCClassDeclarationAST *ast) const if (unsigned pos = ast->class_name->lastToken()) return tokenAt(pos - 1).end(); - return tokenAt(ast->firstToken()).offset; + return tokenAt(ast->firstToken()).begin(); } bool Bind::visit(ObjCClassDeclarationAST *ast) @@ -2155,7 +2155,7 @@ unsigned Bind::calculateScopeStart(ObjCProtocolDeclarationAST *ast) const if (unsigned pos = ast->name->lastToken()) return tokenAt(pos - 1).end(); - return tokenAt(ast->firstToken()).offset; + return tokenAt(ast->firstToken()).begin(); } bool Bind::visit(ObjCProtocolDeclarationAST *ast) |