Cache and reuse value
This commit is contained in:
parent
1de8f771e9
commit
eb6bf1bcae
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue