diff --git a/lib/checkio.cpp b/lib/checkio.cpp index 927dfaa90..7b6c0d5df 100644 --- a/lib/checkio.cpp +++ b/lib/checkio.cpp @@ -1375,7 +1375,7 @@ CheckIO::ArgumentInfo::ArgumentInfo(const Token * tok, const Settings *settings, // Use AST type info // TODO: This is a bailout so that old code is used in simple cases. Remove the old code and always use the AST type. - if (!Token::Match(tok, "%str%|%name% ,|)") && !Token::Match(tok, "%name% [|(|.|<|::|?")) { + if (!Token::Match(tok, "%str%|%name% ,|)")) { const ValueType *valuetype = tok->argumentType(); if (valuetype && valuetype->type >= ValueType::Type::BOOL) { typeToken = tempToken = new Token(0);