Fixed MSVC warning
This commit is contained in:
parent
4abe1c0bac
commit
95756409bc
|
@ -1490,9 +1490,9 @@ void CheckStl::checkDereferenceInvalidIterator()
|
||||||
// Only consider conditions composed of all "&&" terms and
|
// Only consider conditions composed of all "&&" terms and
|
||||||
// conditions composed of all "||" terms
|
// conditions composed of all "||" terms
|
||||||
const bool isOrExpression =
|
const bool isOrExpression =
|
||||||
Token::findsimplematch(startOfCondition, "||", endOfCondition);
|
Token::findsimplematch(startOfCondition, "||", endOfCondition) != 0;
|
||||||
const bool isAndExpression =
|
const bool isAndExpression =
|
||||||
Token::findsimplematch(startOfCondition, "&&", endOfCondition);
|
Token::findsimplematch(startOfCondition, "&&", endOfCondition) != 0;
|
||||||
|
|
||||||
// Look for a check of the validity of an iterator
|
// Look for a check of the validity of an iterator
|
||||||
const Token* validityCheckTok = 0;
|
const Token* validityCheckTok = 0;
|
||||||
|
|
Loading…
Reference in New Issue