diff options
author | Christian Kamm <[email protected]> | 2010-08-26 10:50:00 +0200 |
---|---|---|
committer | Christian Kamm <[email protected]> | 2010-08-26 11:34:29 +0200 |
commit | 87e04df2571821c42c844123d5744135e2d072c1 (patch) | |
tree | e2927af9f64318bc31409ed1ff37be8d8a0c8084 /src/libs/qmljs/qmljscheck.cpp | |
parent | af46c3d947fdf450e9b2a5037f8c6e8f1c907886 (diff) |
QmlJS: Refactor LookupContext creation for speed.
* If possible, create LookupContexts through SemanticInfo; it caches the
linked Context and will be faster.
* Contexts now own their Engine.
Reviewed-by: Lasse Holmstedt
Diffstat (limited to 'src/libs/qmljs/qmljscheck.cpp')
-rw-r--r-- | src/libs/qmljs/qmljscheck.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libs/qmljs/qmljscheck.cpp b/src/libs/qmljs/qmljscheck.cpp index 7a1f7e3bf04..147852fe325 100644 --- a/src/libs/qmljs/qmljscheck.cpp +++ b/src/libs/qmljs/qmljscheck.cpp @@ -157,10 +157,9 @@ public: Check::Check(Document::Ptr doc, const Snapshot &snapshot, const QStringList &importPaths) : _doc(doc) , _snapshot(snapshot) - , _context(&_engine) , _link(&_context, doc, snapshot, importPaths) , _scopeBuilder(doc, &_context) - , _ignoreTypeErrors(_context.documentImportsPlugins(_doc.data())) + , _ignoreTypeErrors(false) { } |