Small fix to error message.

Start with capital letter and no space in beginning.
This commit is contained in:
Kimmo Varis 2010-11-27 20:41:08 +02:00
parent 095f725b3c
commit 2c3f9a9dce
1 changed files with 2 additions and 2 deletions

View File

@ -2520,8 +2520,8 @@ void CheckOther::unusedStructMemberError(const Token *tok, const std::string &st
void CheckOther::passedByValueError(const Token *tok, const std::string &parname)
{
reportError(tok, Severity::performance, "passedByValue",
"Function parameter '" + parname + "' should be passed by reference.\n "
"parameter '" + parname + "' is passed as a value. It could be passed "
"Function parameter '" + parname + "' should be passed by reference.\n"
"Parameter '" + parname + "' is passed as a value. It could be passed "
"as a (const) reference which is usually faster and recommended in C++.");
}