Cache and reuse value

This commit is contained in:
Dmitry-Me 2017-10-23 00:42:56 +03:00
parent 1de8f771e9
commit eb6bf1bcae
1 changed files with 1 additions and 1 deletions

View File

@ -1154,7 +1154,7 @@ void Tokenizer::simplifyTypedef()
bool good = true; bool good = true;
// check for extra qualification // check for extra qualification
while (back >= 0) { while (back >= 0) {
const Token *qualificationTok = start->tokAt(-2); Token *qualificationTok = start->tokAt(-2);
if (!Token::Match(qualificationTok, "%type% ::")) if (!Token::Match(qualificationTok, "%type% ::"))
break; break;
if (qualificationTok->str() == spaceInfo[back].className) { if (qualificationTok->str() == spaceInfo[back].className) {