src/checkother.cpp: simplify condition a bit.
No functional change.
This commit is contained in:
parent
8643936e0c
commit
5f4c83a25e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue