Refactoring: use "findmatch" instead of "findtoken"

This commit is contained in:
Daniel Marjamäki 2008-12-07 06:37:50 +00:00
parent 057d6f1f18
commit 774ca2c350
1 changed files with 1 additions and 2 deletions

View File

@ -651,8 +651,7 @@ void CheckClass::CheckMemset()
void CheckClass::CheckOperatorEq1()
{
const char *pattern[] = {"void", "operator", "=", "(", NULL};
if (const TOKEN *tok = TOKEN::findtoken(_tokenizer->tokens(),pattern))
if (const TOKEN *tok = TOKEN::findmatch(_tokenizer->tokens(), "void operator = ("))
{
std::ostringstream ostr;
ostr << _tokenizer->fileLine(tok) << ": 'operator=' should return something";