C++: Fix an infinite loop in reportResult.

Done-with: Roberto Raggi
This commit is contained in:
Christian Kamm
2010-09-02 15:24:44 +02:00
parent 28a3bd6452
commit 7c2d3659e7

View File

@@ -135,7 +135,7 @@ void FindUsages::reportResult(unsigned tokenIndex, const Name *name, Scope *scop
void FindUsages::reportResult(unsigned tokenIndex, const Identifier *id, Scope *scope)
{
reportResult(tokenIndex, id, scope);
reportResult(tokenIndex, static_cast<const Name *>(id), scope);
}
void FindUsages::reportResult(unsigned tokenIndex, const QList<LookupItem> &candidates)