diff --git a/checkother.cpp b/checkother.cpp index 13bd595f0..e7ad1b0c4 100644 --- a/checkother.cpp +++ b/checkother.cpp @@ -648,7 +648,7 @@ void CheckOther::CheckStructMemberUsage() if (Token::Match(tok2, ". %var1%", 0, varnames)) { - if ( strcmp("=", tok2->strAt(2)) == 0 ) + if ( Token::simpleMatch(tok2->tokAt(2), "=") ) continue; used = true; break;