From 5cc7c9dcf7fc93a509f50e0e62a8d6301ab2f01e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 10 Oct 2010 14:12:11 +0200 Subject: [PATCH] Parameter passed by value: updated error message so it mentions the reason. --- lib/checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index d2ff16c91..1c8724a51 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -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)