From dd70b6e0cd187e83075717d57936215e6d9943b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Sat, 7 Feb 2015 12:51:17 +0100 Subject: [PATCH] fix internal message: [lib/valueflow.cpp:239]: (warning) Found simple pattern inside Token::Match() call: "} ;" --- lib/valueflow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index ee6ffe718..a6e421f30 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -236,7 +236,7 @@ static bool bailoutSelfAssignment(const Token * const tok) static bool isReturn(const Token *tok) { const Token *prev = tok ? tok->previous() : nullptr; - if (Token::Match(prev ? prev->previous() : nullptr, "} ;")) + if (Token::simpleMatch(prev ? prev->previous() : nullptr, "} ;")) prev = prev->previous(); if (Token::simpleMatch(prev, "}")) {