C++: Fixed crash.

Change-Id: Idec56cfced6e6eb2e0a78c4f242e7c81fec08692
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Erik Verbruggen
2012-02-22 15:05:45 +01:00
parent efc428d354
commit f3a3bf78c0

View File

@@ -217,6 +217,9 @@ void SymbolFinder::findMatchingDeclaration(const LookupContext &context,
QList<Declaration *> *argumentCountMatch,
QList<Declaration *> *nameMatch)
{
if (!functionType)
return;
Scope *enclosingScope = functionType->enclosingScope();
while (! (enclosingScope->isNamespace() || enclosingScope->isClass()))
enclosingScope = enclosingScope->enclosingScope();