Use Token::simpleMatch instead of Token::Match

"--enable=internal" reported:
[lib/tokenize.cpp:3563]: (warning) Found simple pattern inside Token::Match() call: ") ;"
This commit is contained in:
Thomas Jarosch 2011-11-24 10:11:45 +01:00
parent 0722da026f
commit 5025d1019f
1 changed files with 1 additions and 1 deletions

View File

@ -3560,7 +3560,7 @@ void Tokenizer::setVarId()
tok2 = tok2->next();
}
if (executableScope && Token::Match(tok2, ") ;"))
if (executableScope && Token::simpleMatch(tok2, ") ;"))
continue;
if (Token::Match(tok2 ? tok2->tokAt(-2) : 0, "class|struct %type% ;"))