Fixed Cppcheck warnings

This commit is contained in:
Daniel Marjamäki 2020-09-26 22:30:59 +02:00
parent 7bb82c5df7
commit 3b39433e21
1 changed files with 2 additions and 2 deletions

View File

@ -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) + ". ";