Drop useless braces
This commit is contained in:
parent
28a625abd8
commit
155ccecf2f
|
@ -1147,7 +1147,7 @@ void CheckBufferOverrun::checkGlobalAndLocalVariable()
|
||||||
|
|
||||||
for (const Token *tok = scope->classStart; tok != scope->classEnd; tok = tok->next()) {
|
for (const Token *tok = scope->classStart; tok != scope->classEnd; tok = tok->next()) {
|
||||||
// if the previous token exists, it must be either a variable name or "[;{}]"
|
// if the previous token exists, it must be either a variable name or "[;{}]"
|
||||||
if (tok->previous() && (!tok->previous()->isName() && !Token::Match(tok->previous(), "[;{}]")))
|
if (tok->previous() && !tok->previous()->isName() && !Token::Match(tok->previous(), "[;{}]"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// size : Max array index
|
// size : Max array index
|
||||||
|
|
Loading…
Reference in New Issue