micro optimisation, use const reference
This commit is contained in:
parent
4ef445e228
commit
1ae75303a7
|
@ -429,7 +429,7 @@ void CheckNullPointer::nullConstantDereference()
|
||||||
nullPointerError(tok);
|
nullPointerError(tok);
|
||||||
|
|
||||||
else if (Token::Match(tok->previous(), "::|. %name% (")) {
|
else if (Token::Match(tok->previous(), "::|. %name% (")) {
|
||||||
std::vector<const Token *> args = getArguments(tok);
|
const std::vector<const Token *> &args = getArguments(tok);
|
||||||
for (int argnr = 0; argnr < args.size(); ++argnr) {
|
for (int argnr = 0; argnr < args.size(); ++argnr) {
|
||||||
const Token *argtok = args[argnr];
|
const Token *argtok = args[argnr];
|
||||||
if (!argtok->hasKnownIntValue())
|
if (!argtok->hasKnownIntValue())
|
||||||
|
|
Loading…
Reference in New Issue