aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmljs/qmljsbind.h
diff options
context:
space:
mode:
authorChristian Kamm <[email protected]>2011-07-13 15:04:27 +0200
committerChristian Kamm <[email protected]>2011-08-08 12:05:19 +0200
commit9dc9674c6b37909d7d7804cb2102ead15950348a (patch)
tree584db5019c86fd499b3552c8f3577e703f293942 /src/libs/qmljs/qmljsbind.h
parentf87dc6198609abdb58b430cf272a4e6ca7144865 (diff)
QmlJS: Share Context.
Previously Context was not entirely thread safe and had to be copied locally. Now it is thread safe and its lifetime managed by QSharedPointer. The non-safe parts were moved into ScopeChain in a previous commit. Change-Id: I851a93de85cbd6391dbea0fe33b011e2e093addb Reviewed-on: http://codereview.qt.nokia.com/1695 Reviewed-by: Fawzi Mohamed <[email protected]>
Diffstat (limited to 'src/libs/qmljs/qmljsbind.h')
-rw-r--r--src/libs/qmljs/qmljsbind.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/qmljs/qmljsbind.h b/src/libs/qmljs/qmljsbind.h
index 09c2f002ad0..6e7f7e65d87 100644
--- a/src/libs/qmljs/qmljsbind.h
+++ b/src/libs/qmljs/qmljsbind.h
@@ -62,7 +62,7 @@ public:
Interpreter::ObjectValue *findQmlObject(AST::Node *node) const;
bool usesQmlPrototype(Interpreter::ObjectValue *prototype,
- const Interpreter::Context *context) const;
+ const Interpreter::ContextPtr &context) const;
Interpreter::ObjectValue *findAttachedJSScope(AST::Node *node) const;
bool isGroupedPropertyBinding(AST::Node *node) const;