From 4827751b049ac4ac71d240e1598fd68aa2426976 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 1 Jul 2017 09:10:23 +0200 Subject: [PATCH] improve constness --- lib/checkleakautovar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkleakautovar.cpp b/lib/checkleakautovar.cpp index cca22ac4a..f2bc989ed 100644 --- a/lib/checkleakautovar.cpp +++ b/lib/checkleakautovar.cpp @@ -352,7 +352,7 @@ void CheckLeakAutoVar::checkScope(const Token * const startToken, tokens.push(tok3->astOperand2()); continue; } else if (tok3->str() == "(" && Token::Match(tok3->previous(), "%name%")) { - std::vector params = getArguments(tok3->previous()); + const std::vector params = getArguments(tok3->previous()); for (unsigned int i = 0; i < params.size(); ++i) { const Token *par = params[i]; if (!par->isComparisonOp())