fix internal warning:
[lib/checkmemoryleak.cpp:2722]: (warning) Found simple pattern inside Token::Match() call: "> ("
This commit is contained in:
parent
40851a12ef
commit
8faf8e2b25
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue