Cache and reuse value
This commit is contained in:
parent
46f726c049
commit
1de8f771e9
|
@ -1155,7 +1155,7 @@ void Tokenizer::simplifyTypedef()
|
||||||
// check for extra qualification
|
// check for extra qualification
|
||||||
while (back >= 0) {
|
while (back >= 0) {
|
||||||
const Token *qualificationTok = start->tokAt(-2);
|
const 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) {
|
||||||
start = qualificationTok;
|
start = qualificationTok;
|
||||||
|
|
Loading…
Reference in New Issue