Skip to content
Snippets Groups Projects
Commit f3a3bf78 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

C++: Fixed crash.


Change-Id: Idec56cfced6e6eb2e0a78c4f242e7c81fec08692
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent efc428d3
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment