src/checkstl.cpp(iterators): reduce indentation.

No functional change.
This commit is contained in:
Slava Semushin 2009-07-29 01:05:00 +07:00
parent f50aa1e188
commit 524b0cd9b8
1 changed files with 26 additions and 26 deletions

View File

@ -47,8 +47,9 @@ void CheckStl::iterators()
{ {
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next()) for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next())
{ {
if (Token::Match(tok, "%var% = %var% . begin ( ) ;|+")) if (!Token::Match(tok, "%var% = %var% . begin ( ) ;|+"))
{ continue;
const unsigned int iteratorId(tok->varId()); const unsigned int iteratorId(tok->varId());
const unsigned int containerId(tok->tokAt(2)->varId()); const unsigned int containerId(tok->tokAt(2)->varId());
if (iteratorId == 0 || containerId == 0) if (iteratorId == 0 || containerId == 0)
@ -78,7 +79,6 @@ void CheckStl::iterators()
} }
} }
} }
}
void CheckStl::stlOutOfBounds() void CheckStl::stlOutOfBounds()