src/checkstl.cpp(stlBoundries): simplify condition.

No functional change.
This commit is contained in:
Slava Semushin 2009-07-29 03:23:23 +07:00
parent 8b0c1daf98
commit 9bf80cb53b
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ void CheckStl::stlBoundries()
break;
--indentlevel;
}
else if (tok2->varId() == iteratorid && tok2->next() && tok2->next()->str() == "<")
else if (Token::Match(tok2, "%varid% <", iteratorid))
{
stlBoundriesError(tok2, container_name);
break;