SymbolDatabase: Optimisation of previous fix for #4952
This commit is contained in:
parent
c58c9d80e1
commit
f420de24ef
|
@ -854,7 +854,7 @@ SymbolDatabase::SymbolDatabase(const Tokenizer *tokenizer, const Settings *setti
|
||||||
if (declarationId > 0U)
|
if (declarationId > 0U)
|
||||||
_variableList[declarationId] = &(*arg);
|
_variableList[declarationId] = &(*arg);
|
||||||
// fix up parameters without type
|
// fix up parameters without type
|
||||||
if (!arg->type()) {
|
if (arg->isClass() && !arg->type()) {
|
||||||
const Type *type = findType(arg->typeStartToken(), scope);
|
const Type *type = findType(arg->typeStartToken(), scope);
|
||||||
if (type)
|
if (type)
|
||||||
arg->type(type);
|
arg->type(type);
|
||||||
|
|
Loading…
Reference in New Issue