Cache and reuse value
This commit is contained in:
parent
1de8f771e9
commit
eb6bf1bcae
|
@ -1154,7 +1154,7 @@ void Tokenizer::simplifyTypedef()
|
|||
bool good = true;
|
||||
// check for extra qualification
|
||||
while (back >= 0) {
|
||||
const Token *qualificationTok = start->tokAt(-2);
|
||||
Token *qualificationTok = start->tokAt(-2);
|
||||
if (!Token::Match(qualificationTok, "%type% ::"))
|
||||
break;
|
||||
if (qualificationTok->str() == spaceInfo[back].className) {
|
||||
|
|
Loading…
Reference in New Issue