diff options
author | Fawzi Mohamed <[email protected]> | 2014-08-27 19:16:54 +0200 |
---|---|---|
committer | Fawzi Mohamed <[email protected]> | 2014-08-28 14:28:59 +0200 |
commit | 9f2d54c959244c736ac6844a5d163b3e37e0d281 (patch) | |
tree | e2e1a4e52d0247c954abb0167158cc6b32bbc8b1 /src/libs/qmljs/qmljsinterpreter.cpp | |
parent | c2be9c01aadb6031dbaa0f6601e436aa336bed17 (diff) |
qmljs: fixing used imports
Task-number: QTCREATORBUG-12782
Change-Id: I44808f10504991fb9fc621acedd43035698c6afb
Reviewed-by: Thomas Hartmann <[email protected]>
Diffstat (limited to 'src/libs/qmljs/qmljsinterpreter.cpp')
-rw-r--r-- | src/libs/qmljs/qmljsinterpreter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libs/qmljs/qmljsinterpreter.cpp b/src/libs/qmljs/qmljsinterpreter.cpp index fbf5725a02b..b4165cdba0d 100644 --- a/src/libs/qmljs/qmljsinterpreter.cpp +++ b/src/libs/qmljs/qmljsinterpreter.cpp @@ -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; } |