Buffer overrun: Minor refactoring. Use the Match function better.
This commit is contained in:
parent
09f7c07a4d
commit
963760b59f
|
@ -369,7 +369,7 @@ void CheckBufferOverrunClass::CheckBufferOverrun_StructVariable()
|
|||
tok;
|
||||
tok = TOKEN::findtoken( tok->next, declstruct_pattern ) )
|
||||
{
|
||||
if (!TOKEN::Match(tok,"struct") && !TOKEN::Match(tok,"class"))
|
||||
if ( ! TOKEN::Match(tok,"struct|class") )
|
||||
continue;
|
||||
|
||||
const char *structname = tok->next->aaaa();
|
||||
|
|
Loading…
Reference in New Issue