Fix Travis hang

This commit is contained in:
Daniel Marjamäki 2019-05-30 21:25:14 +02:00
parent 66a61fe5e8
commit de07e2177c
1 changed files with 3 additions and 1 deletions

View File

@ -4057,8 +4057,10 @@ const Function* Scope::findFunction(const Token *tok, bool requireConst) const
const Function * func = matches[i];
size_t same = 0;
if (requireConst && !func->isConst())
if (requireConst && !func->isConst()) {
i++;
continue;
}
if (!requireConst || !func->isConst()) {
// get the function this call is in