From f867d05d81f478d2f4309092d2ed33bafc2e19e9 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 21 Jan 2013 10:14:39 +0100 Subject: [PATCH] Use Token::simpleMatch() for simple pattern Found by "internal" check --- lib/tokenize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 0d975c2a1..7344887b3 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -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(); } }