fix [lib/checkfunctions.cpp:300]: (warning) Found simple pattern inside Token::Match() call: "new"

This commit is contained in:
Matthias Krüger 2017-04-22 21:53:31 +02:00
parent eaaf6268a9
commit 2744a9456f
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ void CheckFunctions::checkLibraryMatchFunctions()
!tok->type() &&
!tok->isStandardType() &&
tok->linkAt(1)->strAt(1) != "(" &&
!Token::Match(tok->astParent(), "new") &&
!Token::simpleMatch(tok->astParent(), "new") &&
tok->astParent() == tok->next() &&
_settings->library.isNotLibraryFunction(tok)) {
reportError(tok,