aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmljs/qmljsinterpreter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/qmljs/qmljsinterpreter.h')
-rw-r--r--src/libs/qmljs/qmljsinterpreter.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libs/qmljs/qmljsinterpreter.h b/src/libs/qmljs/qmljsinterpreter.h
index 5ec91c009d5..67222cd3b02 100644
--- a/src/libs/qmljs/qmljsinterpreter.h
+++ b/src/libs/qmljs/qmljsinterpreter.h
@@ -242,8 +242,10 @@ class QMLJS_EXPORT ScopeChain
public:
ScopeChain();
- struct QmlComponentChain
+ class QmlComponentChain
{
+ Q_DISABLE_COPY(QmlComponentChain)
+ public:
QmlComponentChain();
~QmlComponentChain();
@@ -255,7 +257,7 @@ public:
};
const ObjectValue *globalScope;
- QmlComponentChain qmlComponentScope;
+ QSharedPointer<QmlComponentChain> qmlComponentScope;
QList<const ObjectValue *> qmlScopeObjects;
const ObjectValue *qmlTypes;
QList<const ObjectValue *> jsScopes;