Refactoring, use early continue
This commit is contained in:
parent
67a71fa362
commit
3ad6c7ebce
|
@ -1324,7 +1324,8 @@ void CheckBufferOverrun::checkStructVariable()
|
|||
const Scope * scope = symbolDatabase->classAndStructScopes[i];
|
||||
|
||||
for (std::list<Variable>::const_iterator var = scope->varlist.begin(); var != scope->varlist.end(); ++var) {
|
||||
if (var->isArray()) {
|
||||
if (!var->isArray())
|
||||
continue;
|
||||
// create ArrayInfo from the array variable
|
||||
ArrayInfo arrayInfo(&*var, symbolDatabase);
|
||||
|
||||
|
@ -1472,7 +1473,6 @@ void CheckBufferOverrun::checkStructVariable()
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue