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

This commit is contained in:
orbitcowboy 2013-10-25 01:31:55 -07:00
parent e8fdf4cdd2
commit 76e092428a
1 changed files with 1 additions and 1 deletions

View File

@ -3387,7 +3387,7 @@ bool Tokenizer::simplifySizeof()
}
else if (Token::Match(tok, "sizeof ( %type% )")) {
unsigned int size = sizeOfType(tok->tokAt(2));
const unsigned int size = sizeOfType(tok->tokAt(2));
if (size > 0) {
tok->str(MathLib::toString(size));
tok->deleteNext(3);