From de07e2177c6e1dd79f607be980a7d2f095430384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 30 May 2019 21:25:14 +0200 Subject: [PATCH] Fix Travis hang --- lib/symboldatabase.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 2aabe3504..f37ca9c93 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -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