Fixed MSVC warning

This commit is contained in:
PKEuS 2013-04-08 02:26:58 -07:00
parent 4abe1c0bac
commit 95756409bc
1 changed files with 2 additions and 2 deletions

View File

@ -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;