From 34449ae857435ad0fd67cb6bb3347c54fd8ec859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 26 Dec 2015 02:21:52 +0100 Subject: [PATCH] Use simpleMatch instead of Match for simple pattern, hope this makes Travis happy --- lib/checkfunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkfunctions.cpp b/lib/checkfunctions.cpp index ca1f46263..8af580ebf 100644 --- a/lib/checkfunctions.cpp +++ b/lib/checkfunctions.cpp @@ -99,7 +99,7 @@ void CheckFunctions::invalidFunctionUsage() while (Token::Match(var, ".|::")) var = var->astOperand2(); if (Token::Match(top, "%comp%|%oror%|&&|!|true|false") || - (var && var->variable() && Token::Match(var->variable()->typeStartToken(), "bool"))) { + (var && var->variable() && Token::simpleMatch(var->variable()->typeStartToken(), "bool"))) { if (_settings->library.isboolargbad(functionToken, argnr)) invalidFunctionArgBoolError(top, functionToken->str(), argnr);