qmljs: fixing used imports

Task-number: QTCREATORBUG-12782
Change-Id: I44808f10504991fb9fc621acedd43035698c6afb
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Fawzi Mohamed
2014-08-27 19:16:54 +02:00
parent c2be9c01aa
commit 9f2d54c959
3 changed files with 6 additions and 4 deletions

View File

@@ -2312,8 +2312,10 @@ const Value *TypeScope::lookupMember(const QString &name, const Context *context
continue;
}
if (const Value *v = import->lookupMember(name, context, foundInObject))
if (const Value *v = import->lookupMember(name, context, foundInObject)) {
i.used = true;
return v;
}
}
if (foundInObject)
*foundInObject = 0;
@@ -2491,7 +2493,7 @@ bool Imports::importFailed() const
return m_importFailed;
}
QList<Import> Imports::all() const
const QList<Import> &Imports::all() const
{
return m_imports;
}