Fixed verbose messages in CheckOther::incorrectLogicOperatorError which didn't contain all information of the short message.

This commit is contained in:
PKEuS 2012-11-10 11:31:36 +01:00
parent f75826c3e2
commit 3e03838025
1 changed files with 2 additions and 0 deletions

View File

@ -1371,10 +1371,12 @@ void CheckOther::incorrectLogicOperatorError(const Token *tok, const std::string
if (always)
reportError(tok, Severity::warning, "incorrectLogicOperator",
"Logical disjunction always evaluates to true: " + condition + ".\n"
"Logical disjunction always evaluates to true: " + condition + ". "
"Are these conditions necessary? Did you intend to use && instead? Are the numbers correct? Are you comparing the correct variables?");
else
reportError(tok, Severity::warning, "incorrectLogicOperator",
"Logical conjunction always evaluates to false: " + condition + ".\n"
"Logical conjunction always evaluates to false: " + condition + ". "
"Are these conditions necessary? Did you intend to use || instead? Are the numbers correct? Are you comparing the correct variables?");
}