From 3b39433e21f855f294af70e353450c2cb775bf2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 26 Sep 2020 22:30:59 +0200 Subject: [PATCH] Fixed Cppcheck warnings --- lib/checkother.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 35cd1fd1d..c57fd413e 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -3207,8 +3207,8 @@ void CheckOther::knownArgumentError(const Token *tok, const Token *ftok, const V } const MathLib::bigint intvalue = value->intvalue; - const std::string expr = tok->expressionString(); - const std::string fun = ftok->str(); + const std::string &expr = tok->expressionString(); + const std::string &fun = ftok->str(); const char *id;; std::string errmsg = "Argument '" + expr + "' to function " + fun + " is always " + std::to_string(intvalue) + ". ";