Buffer overrun: Minor refactoring. Use the Match function better.

This commit is contained in:
Daniel Marjamäki 2008-12-05 18:35:36 +00:00
parent 09f7c07a4d
commit 963760b59f
1 changed files with 1 additions and 1 deletions

View File

@ -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();