diff --git a/lib/checkassert.cpp b/lib/checkassert.cpp index 26069a071..d3b3e5e08 100644 --- a/lib/checkassert.cpp +++ b/lib/checkassert.cpp @@ -66,7 +66,7 @@ void CheckAssert::assertWithSideEffects() if (!scope) continue; for (const Token *tok2 = scope->classStart; tok2 != scope->classEnd; tok2 = tok2->next()) { - if (tok2 && tok2->type() != Token::eAssignmentOp && tok2->type() != Token::eIncDecOp) continue; + if (tok2->type() != Token::eAssignmentOp && tok2->type() != Token::eIncDecOp) continue; const Variable* var = tok2->previous()->variable(); if (!var) continue;