From 6b80e619341250eabad807c41cc1097e76b1b341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Sun, 3 May 2015 10:59:58 +0200 Subject: [PATCH] fix internal warning; was [lib/checkstring.cpp:43]: (warning) Found simple pattern inside Token::Match() call: "] =" --- lib/checkstring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkstring.cpp b/lib/checkstring.cpp index f92a03cec..bdbdee994 100644 --- a/lib/checkstring.cpp +++ b/lib/checkstring.cpp @@ -40,7 +40,7 @@ void CheckString::stringLiteralWrite() const Token *str = tok->getValueTokenMinStrSize(); if (!str) continue; - if (Token::Match(tok, "%var% [") && Token::Match(tok->linkAt(1), "] =")) + if (Token::Match(tok, "%var% [") && Token::simpleMatch(tok->linkAt(1), "] =")) stringLiteralWriteError(tok); else if (Token::Match(tok->previous(), "* %var% =")) stringLiteralWriteError(tok);