Fixed self-check error. Use Token::simpleMatch for simple pattern.
This commit is contained in:
parent
2e2d766e2b
commit
2c24af02c8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue