Fixed out-of-bounds when originalSource was not explicitly supplied.

Task-number: QTCREATORBUG-3613
This commit is contained in:
Erik Verbruggen
2011-01-27 14:51:01 +01:00
parent 13cc74321e
commit 2062747158
2 changed files with 29 additions and 1 deletions

View File

@@ -75,6 +75,8 @@ protected:
Scope *switchScope(Scope *scope);
QString matchingLine(const Token &tk) const;
void reportResult(unsigned tokenIndex, const Name *name, Scope *scope = 0);
void reportResult(unsigned tokenIndex, const Identifier *id, Scope *scope = 0);
void reportResult(unsigned tokenIndex, const QList<LookupItem> &candidates);