fix internal warning:

[lib/checkmemoryleak.cpp:2722]: (warning) Found simple pattern inside Token::Match() call: "> ("
This commit is contained in:
Matthias Krüger 2015-11-19 17:03:55 +01:00
parent 40851a12ef
commit 8faf8e2b25
1 changed files with 1 additions and 1 deletions

View File

@ -2719,7 +2719,7 @@ void CheckMemoryLeakNoVar::checkForUnsafeArgAlloc(const Scope *scope)
} else if (!isNothrow) {
if (Token::Match(tok2, "%name% ("))
functionCalled = tok2;
else if (tok2->isName() && tok2->next()->link() && Token::Match(tok2->next()->link(), "> ("))
else if (tok2->isName() && tok2->next()->link() && Token::simpleMatch(tok2->next()->link(), "> ("))
functionCalled = tok2;
}
}