QmlJS: Make ScopeChain more const-correct.

We don't want people modifying the shared component chain on a
const Context *.
This commit is contained in:
Christian Kamm
2010-08-30 14:12:06 +02:00
parent f49a85953b
commit 88601712c6
3 changed files with 13 additions and 12 deletions

View File

@@ -249,15 +249,15 @@ public:
QmlComponentChain();
~QmlComponentChain();
QList<QmlComponentChain *> instantiatingComponents;
QList<const QmlComponentChain *> instantiatingComponents;
Document::Ptr document;
void add(QList<const ObjectValue *> *list) const;
void collect(QList<const ObjectValue *> *list) const;
void clear();
};
const ObjectValue *globalScope;
QSharedPointer<QmlComponentChain> qmlComponentScope;
QSharedPointer<const QmlComponentChain> qmlComponentScope;
QList<const ObjectValue *> qmlScopeObjects;
const ObjectValue *qmlTypes;
QList<const ObjectValue *> jsScopes;