Tokenize: improved const correctness of local variables, no functional change.

This commit is contained in:
orbitcowboy 2013-10-25 01:34:53 -07:00
parent 76e092428a
commit 30984ff649
1 changed files with 1 additions and 1 deletions

View File

@ -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);