Fixed internal error, use Token::simpleMatch for pattern 'const new' instead of Token::Match

This commit is contained in:
Daniel Marjamäki 2014-10-10 18:58:04 +02:00
parent 19a05b1f53
commit b0b86f5607
1 changed files with 1 additions and 1 deletions

View File

@ -2601,7 +2601,7 @@ void Tokenizer::setVarId()
if (notstart.find(tok2->str()) != notstart.end())
continue;
if (Token::Match(tok2, "const new") && !isC())
if (Token::simpleMatch(tok2, "const new") && !isC())
continue;
bool decl = setVarIdParseDeclaration(&tok2, variableId, executableScope.top(), isCPP());