Improved constness of local variable, no functional changes.
This commit is contained in:
parent
63f39ea48f
commit
272cf27ec3
|
@ -1734,7 +1734,7 @@ bool CheckUninitVar::isVariableUsage(const Token *vartok, bool pointer, Alloc al
|
||||||
|
|
||||||
// Passing variable to function..
|
// Passing variable to function..
|
||||||
if (Token::Match(vartok->previous(), "[(,] %name% [,)]") || Token::Match(vartok->tokAt(-2), "[(,] & %name% [,)]")) {
|
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)
|
if (use >= 0)
|
||||||
return use;
|
return use;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue