fixed unit test

This commit is contained in:
Daniel Marjamäki 2011-01-15 21:04:20 +01:00
parent 94ebb24d3d
commit bb2862bc97
1 changed files with 1 additions and 1 deletions

View File

@ -2537,7 +2537,7 @@ void CheckOther::checkMisusedScopedObject()
std::set<std::string> identifiers;
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next())
{
if (Token::Match(tok, "class|struct %var% [:{]"))
if (Token::Match(tok, "class|struct %var% [:{;]"))
identifiers.insert(tok->next()->str());
}