Drop useless braces

This commit is contained in:
Dmitry-Me 2015-12-22 10:31:49 +03:00
parent 28a625abd8
commit 155ccecf2f
1 changed files with 1 additions and 1 deletions

View File

@ -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