SymbolDatabase: Optimisation of previous fix for #4952

This commit is contained in:
Robert Reif 2013-08-13 06:36:54 +02:00 committed by Daniel Marjamäki
parent c58c9d80e1
commit f420de24ef
1 changed files with 1 additions and 1 deletions

View File

@ -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);