use simpleMatch for simple pattern

This commit is contained in:
Daniel Marjamäki 2017-04-23 19:25:35 +02:00
parent 8a738eefab
commit 25a1ea3d18
1 changed files with 1 additions and 1 deletions

View File

@ -1034,7 +1034,7 @@ int CheckUninitVar::isFunctionParUsage(const Token *vartok, bool pointer, Alloc
start = start->previous();
}
if (Token::Match(start->link(), ") {"))
if (Token::simpleMatch(start->link(), ") {"))
return (!pointer || alloc == NO_ALLOC);
// is this a function call?