src/checkstl.cpp(iterators): reduce indentation.
No functional change.
This commit is contained in:
parent
f50aa1e188
commit
524b0cd9b8
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue