Fix Cppcheck internal warning

This commit is contained in:
Daniel Marjamäki 2019-10-01 21:37:43 +02:00
parent cf965b72b5
commit 87ece5856a
1 changed files with 1 additions and 1 deletions

View File

@ -5572,7 +5572,7 @@ private:
void findFunction27() { void findFunction27() {
GET_SYMBOL_DB("namespace { void a(int); }\n" GET_SYMBOL_DB("namespace { void a(int); }\n"
"void f() { a(9); }"); "void f() { a(9); }");
const Token *a = Token::findmatch(tokenizer.tokens(), "a ( 9 )"); const Token *a = Token::findsimplematch(tokenizer.tokens(), "a ( 9 )");
ASSERT(a); ASSERT(a);
ASSERT(a->function()); ASSERT(a->function());
} }