src/checkother.cpp: simplify condition a bit.

No functional change.
This commit is contained in:
Slava Semushin 2009-07-25 18:14:38 +07:00
parent 8643936e0c
commit 5f4c83a25e
1 changed files with 1 additions and 2 deletions

View File

@ -92,8 +92,7 @@ void CheckOther::warningRedundantCode()
*
**/
if (Token::simpleMatch(tok2, "this .") ||
Token::Match(tok2, "%var% ::"))
if (Token::Match(tok2, "%var% .|::"))
{
tok2 = tok2->tokAt(2);
}