From ac45bf7af2955f765ef0137daba68baa5b914b3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 4 Apr 2020 11:19:28 +0200 Subject: [PATCH] Small refactoring --- lib/tokenize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index f22593307..d54c8fb28 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -570,7 +570,7 @@ void Tokenizer::simplifyTypedef() } if (tok->str() != "typedef") { - if (tok->str() == "(" && tok->strAt(1) == "typedef") { + if (Token::simpleMatch(tok, "( typedef")) { // Skip typedefs inside parentheses (#2453 and #4002) tok = tok->next(); } else if (Token::Match(tok, "class|struct|namespace %any%") &&