diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 8f469358f..e27a858a8 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -854,7 +854,7 @@ SymbolDatabase::SymbolDatabase(const Tokenizer *tokenizer, const Settings *setti if (declarationId > 0U) _variableList[declarationId] = &(*arg); // fix up parameters without type - if (!arg->type()) { + if (arg->isClass() && !arg->type()) { const Type *type = findType(arg->typeStartToken(), scope); if (type) arg->type(type);