Tokenize: improved const correctness of local variables, no functional change.
This commit is contained in:
parent
76e092428a
commit
30984ff649
|
@ -3399,7 +3399,7 @@ bool Tokenizer::simplifySizeof()
|
|||
// Some default value..
|
||||
std::size_t sz = 0;
|
||||
|
||||
unsigned int varid = tok->tokAt((tok->strAt(2) == "*") ? 3 : 2)->varId();
|
||||
const unsigned int varid = tok->tokAt((tok->strAt(2) == "*") ? 3 : 2)->varId();
|
||||
if (varid != 0) {
|
||||
// Try to locate variable declaration..
|
||||
const Token *decltok = Token::findmatch(list.front(), "%varid%", varid);
|
||||
|
|
Loading…
Reference in New Issue