Parameter passed by value: updated error message so it mentions the reason.

This commit is contained in:
Daniel Marjamäki 2010-10-10 14:12:11 +02:00
parent ae0528ef59
commit 5cc7c9dcf7
1 changed files with 1 additions and 1 deletions

View File

@ -3967,7 +3967,7 @@ void CheckOther::unusedStructMemberError(const Token *tok, const std::string &st
void CheckOther::passedByValueError(const Token *tok, const std::string &parname)
{
reportError(tok, Severity::style, "passedByValue", "Function parameter '" + parname + "' is passed by value. It could be passed by reference instead.");
reportError(tok, Severity::style, "passedByValue", "Function parameter '" + parname + "' is passed by value. It could be passed by reference instead, to make it faster.");
}
void CheckOther::constStatementError(const Token *tok, const std::string &type)