Merge pull request #659 from Dmitry-Me/removeTokAtAbuse

Prefer previous() to tokAt(-1)
This commit is contained in:
orbitcowboy 2015-08-28 14:56:19 +02:00
commit 0aa75b12ab
1 changed files with 1 additions and 1 deletions

View File

@ -1850,7 +1850,7 @@ bool CheckClass::checkConstFunc(const Scope *scope, const Function *func, bool&
return (false);
const Token* lhs = tok1->tokAt(-1);
const Token* lhs = tok1->previous();
if (lhs->str() == "&") {
lhs = lhs->previous();
if (lhs->tokType() == Token::eAssignmentOp && lhs->previous()->variable()) {