From 367eecf0db2ff4d62775fce6b23656b56905acd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 23 Jul 2015 19:13:50 +0200 Subject: [PATCH] Fixed Cppcheck internal warning, simpleMatch can be used instead of Match --- lib/checkstl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkstl.cpp b/lib/checkstl.cpp index 089a94758..9d4863c23 100644 --- a/lib/checkstl.cpp +++ b/lib/checkstl.cpp @@ -408,7 +408,7 @@ void CheckStl::eraseCheckLoopVar(const Scope &scope, const Variable *var) if (tok2->str() == "}") { if (indentlevel > 0U) --indentlevel; - else if (Token::Match(tok2, "} else {")) + else if (Token::simpleMatch(tok2, "} else {")) tok2 = tok2->linkAt(2); continue; }