diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-01-15 15:01:06 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2015-01-23 08:07:35 +0100 |
commit | 13cf87fa93b584091a51d775953074db9df1b453 (patch) | |
tree | def0d8107e1a152faff71b31902eaade14531e12 /src/qml/qml/qqmlobjectcreator.cpp | |
parent | 002a5d4303b3b182ae4abc4a752c49787c1c2821 (diff) |
Remove all remaining usages of ValueRef
Change-Id: Icd76d3d03fac2e57530e55f8ec15b97109dcdcbc
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlobjectcreator.cpp')
-rw-r--r-- | src/qml/qml/qqmlobjectcreator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlobjectcreator.cpp b/src/qml/qml/qqmlobjectcreator.cpp index 69b68be8a3..dc359f7fa5 100644 --- a/src/qml/qml/qqmlobjectcreator.cpp +++ b/src/qml/qml/qqmlobjectcreator.cpp @@ -1171,8 +1171,8 @@ QObject *QQmlObjectCreator::createInstance(int index, QObject *parent, bool isCo QV4::ExecutionEngine *v4 = QV8Engine::getV4(engine); Q_ASSERT(sharedState->allJavaScriptObjects); - QV4::ValueRef ref = QV4::ValueRef::fromRawValue(sharedState->allJavaScriptObjects++); - ref = QV4::QObjectWrapper::wrap(v4, instance); + *sharedState->allJavaScriptObjects = QV4::QObjectWrapper::wrap(v4, instance); + ++sharedState->allJavaScriptObjects; QV4::Scope valueScope(v4); QV4::ScopedObject qmlScope(valueScope, QV4::QmlContextWrapper::qmlScope(v4, context, _scopeObject)); |