Use Token::simpleMatch() for simple pattern

Found by "internal" check
This commit is contained in:
Thomas Jarosch 2013-01-21 10:14:39 +01:00
parent c478a3214f
commit f867d05d81
1 changed files with 1 additions and 1 deletions

View File

@ -8520,7 +8520,7 @@ void Tokenizer::simplifyKeyword()
if (_settings->standards.c >= Standards::C99) {
for (Token *tok = list.front(); tok; tok = tok->next()) {
while (Token::Match(tok, "restrict")) {
while (Token::simpleMatch(tok, "restrict")) {
tok->deleteThis();
}
}