Tokenizer::setVarIdNew: Fixed TestTokenizer::varid19 test case

This commit is contained in:
Daniel Marjamäki 2012-04-21 18:22:18 +02:00
parent 42a95c9202
commit 1cc256339c
1 changed files with 2 additions and 2 deletions

View File

@ -2823,8 +2823,8 @@ static bool setVarIdParseDeclaration(const Token **tok, const std::map<std::stri
++typeCount;
}
} else if (tok2->str() == "<" && TemplateSimplifier::templateParameters(tok2) > 0) {
bool bad = tok2->findClosingBracket(tok2);
if (bad || !tok2)
bool ok = tok2->findClosingBracket(tok2);
if (!ok || !tok2)
break;
} else if (tok2->str() == "&") {
ref = true;