forked from qt-creator/qt-creator
C++: Fixed crash.
Change-Id: Idec56cfced6e6eb2e0a78c4f242e7c81fec08692 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -217,6 +217,9 @@ void SymbolFinder::findMatchingDeclaration(const LookupContext &context,
|
|||||||
QList<Declaration *> *argumentCountMatch,
|
QList<Declaration *> *argumentCountMatch,
|
||||||
QList<Declaration *> *nameMatch)
|
QList<Declaration *> *nameMatch)
|
||||||
{
|
{
|
||||||
|
if (!functionType)
|
||||||
|
return;
|
||||||
|
|
||||||
Scope *enclosingScope = functionType->enclosingScope();
|
Scope *enclosingScope = functionType->enclosingScope();
|
||||||
while (! (enclosingScope->isNamespace() || enclosingScope->isClass()))
|
while (! (enclosingScope->isNamespace() || enclosingScope->isClass()))
|
||||||
enclosingScope = enclosingScope->enclosingScope();
|
enclosingScope = enclosingScope->enclosingScope();
|
||||||
|
|||||||
Reference in New Issue
Block a user