From 72a40b4da4081bbea9e026a2daa8a9f92d3a6b8a Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Thu, 14 Feb 2013 12:34:18 +0100 Subject: [PATCH] Use Token::simpleMatch for simple patterns "internal" check reported: [lib/checkuninitvar.cpp:1101]: (warning) Found simple pattern inside Token::Match() call: "if (" --- lib/checkuninitvar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkuninitvar.cpp b/lib/checkuninitvar.cpp index 718dd8f01..95c40c6cb 100644 --- a/lib/checkuninitvar.cpp +++ b/lib/checkuninitvar.cpp @@ -1101,7 +1101,7 @@ void CheckUninitVar::checkScope(const Scope* scope) static void conditionAlwaysTrueOrFalse(const Token *tok, const std::map &variableValue, bool *alwaysTrue, bool *alwaysFalse) { - assert(Token::Match(tok, "if (")); + assert(Token::simpleMatch(tok, "if (")); const Token *vartok = tok->tokAt(2); const bool NOT(vartok->str() == "!");