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:
Ken-Patrick 2019-09-01 09:53:45 +02:00 committed by Daniel Marjamäki
parent d1c6cb9aa5
commit d918f76a0d
1 changed files with 1 additions and 1 deletions

View File

@ -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();