Fix Cppcheck internal warning

This commit is contained in:
Daniel Marjamäki 2019-08-23 16:56:28 +02:00
parent d3f7fc92f2
commit 9cbdc262f6
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ void CheckOther::checkRedundantAssignment()
bool trivial = true;
visitAstNodes(tok->astOperand2(),
[&](const Token *rhs) {
if (Token::Match(rhs, "{ 0 }"))
if (Token::simpleMatch(rhs, "{ 0 }"))
return ChildrenToVisit::none;
if (Token::Match(rhs, "%str%|%num%|%name%") && !rhs->varId())
return ChildrenToVisit::none;