SymbolDatabase::findFunction: Use getArguments utility function
This commit is contained in:
parent
24ad434c52
commit
cccbfaa0e4
|
@ -4098,12 +4098,7 @@ const Function* Scope::findFunction(const Token *tok, bool requireConst) const
|
|||
if (!end)
|
||||
return nullptr;
|
||||
|
||||
std::vector<const Token *> 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<const Token *> arguments = getArguments(tok);
|
||||
|
||||
std::vector<const Function *> matches;
|
||||
|
||||
|
|
Loading…
Reference in New Issue