Merge pull request #735 from Dmitry-Me/dropUnneededBraces
Drop useless braces
This commit is contained in:
commit
31171f038a
|
@ -1147,7 +1147,7 @@ void CheckBufferOverrun::checkGlobalAndLocalVariable()
|
|||
|
||||
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 (tok->previous() && (!tok->previous()->isName() && !Token::Match(tok->previous(), "[;{}]")))
|
||||
if (tok->previous() && !tok->previous()->isName() && !Token::Match(tok->previous(), "[;{}]"))
|
||||
continue;
|
||||
|
||||
// size : Max array index
|
||||
|
|
Loading…
Reference in New Issue