diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2011-07-13 15:04:27 +0200 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2011-08-08 12:05:19 +0200 |
commit | 9dc9674c6b37909d7d7804cb2102ead15950348a (patch) | |
tree | 584db5019c86fd499b3552c8f3577e703f293942 /src/plugins/qmljseditor/qmloutlinemodel.h | |
parent | f87dc6198609abdb58b430cf272a4e6ca7144865 (diff) | |
download | qt-creator-9dc9674c6b37909d7d7804cb2102ead15950348a.tar.gz |
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 <fawzi.mohamed@nokia.com>
Diffstat (limited to 'src/plugins/qmljseditor/qmloutlinemodel.h')
-rw-r--r-- | src/plugins/qmljseditor/qmloutlinemodel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmljseditor/qmloutlinemodel.h b/src/plugins/qmljseditor/qmloutlinemodel.h index fea526125d..259a6b3807 100644 --- a/src/plugins/qmljseditor/qmloutlinemodel.h +++ b/src/plugins/qmljseditor/qmloutlinemodel.h @@ -65,7 +65,7 @@ public: void setItemData(const QMap<int, QVariant> &roles); private: - QString prettyPrint(const QmlJS::Interpreter::Value *value, const QmlJS::Interpreter::Context *context) const; + QString prettyPrint(const QmlJS::Interpreter::Value *value, const QmlJS::Interpreter::ContextPtr &context) const; QmlOutlineModel *m_outlineModel; }; |