micro optimisation, use const reference

This commit is contained in:
Daniel Marjamäki 2018-03-19 09:53:14 +01:00
parent 4ef445e228
commit 1ae75303a7
1 changed files with 1 additions and 1 deletions

View File

@ -429,7 +429,7 @@ void CheckNullPointer::nullConstantDereference()
nullPointerError(tok);
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) {
const Token *argtok = args[argnr];
if (!argtok->hasKnownIntValue())