From cccbfaa0e47022b605ec89bb061911893330e22f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 29 Jul 2019 21:17:15 +0200 Subject: [PATCH] SymbolDatabase::findFunction: Use getArguments utility function --- lib/symboldatabase.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 589370b52..65afbd134 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -4098,12 +4098,7 @@ const Function* Scope::findFunction(const Token *tok, bool requireConst) const if (!end) return nullptr; - std::vector arguments; - - // find all the arguments for this function call - for (const Token *arg = tok->tokAt(2); arg && arg != end; arg = arg->nextArgument()) { - arguments.push_back(arg); - } + const std::vector arguments = getArguments(tok); std::vector matches;