Refactoring : Changed a 'strcmp' to a 'simpleMatch'
This commit is contained in:
parent
e097232e99
commit
7d59985d88
|
@ -648,7 +648,7 @@ void CheckOther::CheckStructMemberUsage()
|
||||||
|
|
||||||
if (Token::Match(tok2, ". %var1%", 0, varnames))
|
if (Token::Match(tok2, ". %var1%", 0, varnames))
|
||||||
{
|
{
|
||||||
if ( strcmp("=", tok2->strAt(2)) == 0 )
|
if ( Token::simpleMatch(tok2->tokAt(2), "=") )
|
||||||
continue;
|
continue;
|
||||||
used = true;
|
used = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue