Remove useless check introduced by 717aa826d8
(#2130)
I was confused by the naming in the forum entry (this/that). This would be a pointer, there's no point checking for it there.
This commit is contained in:
parent
d1c6cb9aa5
commit
d918f76a0d
|
@ -950,7 +950,7 @@ void CheckClass::initializationListUsage()
|
|||
break;
|
||||
if (Token::Match(tok, "try|do {"))
|
||||
break;
|
||||
if (!Token::Match(tok, "%var% =") || tok->strAt(-1) == "*" || (tok->strAt(-1) == "." && tok->strAt(-2) != "this"))
|
||||
if (!Token::Match(tok, "%var% =") || tok->strAt(-1) == "*" || tok->strAt(-1) == ".")
|
||||
continue;
|
||||
|
||||
const Variable* var = tok->variable();
|
||||
|
|
Loading…
Reference in New Issue