forked from qt-creator/qt-creator
qmljs: fixing used imports
Task-number: QTCREATORBUG-12782 Change-Id: I44808f10504991fb9fc621acedd43035698c6afb Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user