Tokenize: improved const correctness of local variables, no functional change.
This commit is contained in:
parent
e8fdf4cdd2
commit
76e092428a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue