Skip to content

Commit eb6bf1b

Browse files
committed
Cache and reuse value
1 parent 1de8f77 commit eb6bf1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tokenize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ void Tokenizer::simplifyTypedef()
11541154
bool good = true;
11551155
// check for extra qualification
11561156
while (back >= 0) {
1157-
const Token *qualificationTok = start->tokAt(-2);
1157+
Token *qualificationTok = start->tokAt(-2);
11581158
if (!Token::Match(qualificationTok, "%type% ::"))
11591159
break;
11601160
if (qualificationTok->str() == spaceInfo[back].className) {

0 commit comments

Comments
 (0)