From 155ccecf2f4a9c3a14967279dd49c9ee322e25b3 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Tue, 22 Dec 2015 10:31:49 +0300 Subject: [PATCH] Drop useless braces --- lib/checkbufferoverrun.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkbufferoverrun.cpp b/lib/checkbufferoverrun.cpp index c0ae2a669..474edf02f 100644 --- a/lib/checkbufferoverrun.cpp +++ b/lib/checkbufferoverrun.cpp @@ -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