Skip to content

Commit dbe8187

Browse files
Update astutils.cpp
1 parent 199552a commit dbe8187

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/astutils.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3425,13 +3425,14 @@ static ExprUsage getFunctionUsage(const Token* tok, int indirect, const Settings
34253425
// TODO: resolve multiple constructors
34263426
if (ftok->variable()->type() && ftok->variable()->type()->classScope) {
34273427
const int nCtor = ftok->variable()->type()->classScope->numConstructors;
3428-
if (nCtor == 0)
3428+
if (nCtor == 0) {
34293429
if (indirect > 0) {
34303430
std::vector<const Variable*> argvar = getArgumentVars(ftok->astParent(), argnr);
34313431
if (argvar.size() == 1 && argvar[0]->valueType() && argvar[0]->valueType()->pointer == indirect)
34323432
return ExprUsage::NotUsed;
34333433
}
34343434
return ExprUsage::Used;
3435+
}
34353436
if (nCtor == 1) {
34363437
const Scope* scope = ftok->variable()->type()->classScope;
34373438
auto it = std::find_if(scope->functionList.begin(), scope->functionList.end(), [](const Function& f) {

0 commit comments

Comments
 (0)