Merge pull request #735 from Dmitry-Me/dropUnneededBraces

Drop useless braces
This commit is contained in:
Daniel Marjamäki 2015-12-22 09:36:51 +01:00
commit 31171f038a
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