Use simpleMatch instead of Match for simple pattern, hope this makes Travis happy

This commit is contained in:
Daniel Marjamäki 2015-12-26 02:21:52 +01:00
parent cea40168e0
commit 34449ae857
1 changed files with 1 additions and 1 deletions

View File

@ -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);