From f420de24efb5ff79c8382501a01cd6a2383fb8f0 Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Tue, 13 Aug 2013 06:36:54 +0200 Subject: [PATCH] SymbolDatabase: Optimisation of previous fix for #4952 --- lib/symboldatabase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);