Fixed self-check error. Use Token::simpleMatch for simple pattern.

This commit is contained in:
Daniel Marjamäki 2021-05-09 23:02:35 +02:00
parent 2e2d766e2b
commit 2c24af02c8
1 changed files with 1 additions and 1 deletions

View File

@ -3696,7 +3696,7 @@ void TemplateSimplifier::simplifyTemplates(
// explicit(bool)
for (Token *tok = mTokenList.front(); tok; tok = tok->next()) {
if (Token::Match(tok, "explicit (")) {
if (Token::simpleMatch(tok, "explicit (")) {
bool isFalse = Token::simpleMatch(tok->tokAt(2), "false )");
Token::eraseTokens(tok, tok->linkAt(1)->next());
if (isFalse)