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 .") ||
|
if (Token::Match(tok2, "%var% .|::"))
|
||||||
Token::Match(tok2, "%var% ::"))
|
|
||||||
{
|
{
|
||||||
tok2 = tok2->tokAt(2);
|
tok2 = tok2->tokAt(2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue