Improved constness of local variable, no functional changes.

This commit is contained in:
Martin Ettl 2015-06-20 11:33:27 +02:00
parent 63f39ea48f
commit 272cf27ec3
1 changed files with 1 additions and 1 deletions

View File

@ -1734,7 +1734,7 @@ bool CheckUninitVar::isVariableUsage(const Token *vartok, bool pointer, Alloc al
// Passing variable to function..
if (Token::Match(vartok->previous(), "[(,] %name% [,)]") || Token::Match(vartok->tokAt(-2), "[(,] & %name% [,)]")) {
int use = isFunctionParUsage(vartok, pointer, alloc);
const int use = isFunctionParUsage(vartok, pointer, alloc);
if (use >= 0)
return use;
}