aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4regexpobject.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-02-15 15:40:42 +0100
committerLars Knoll <lars.knoll@qt.io>2017-03-09 08:59:17 +0000
commit05de4e044f92dd278a00e410be8f070bc4d66e6f (patch)
tree49ae1cfd3e95824e22425f8a93f30e656d3694c5 /src/qml/jsruntime/qv4regexpobject.cpp
parentd06b171582104db5f0b61ee782fb835dd6038d62 (diff)
Smaller cleanup
Change-Id: I68de47784c41b7aa2da5334c6a7f470d1180b752 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4regexpobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4regexpobject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4regexpobject.cpp b/src/qml/jsruntime/qv4regexpobject.cpp
index f8ad11fa98..85e37ebe82 100644
--- a/src/qml/jsruntime/qv4regexpobject.cpp
+++ b/src/qml/jsruntime/qv4regexpobject.cpp
@@ -74,8 +74,8 @@ void Heap::RegExpObject::init()
Object::init();
Scope scope(internalClass->engine);
Scoped<QV4::RegExpObject> o(scope, this);
- o->d()->value.set(scope.engine, QV4::RegExp::create(scope.engine, QString(), false, false));
- o->d()->global = false;
+ value.set(scope.engine, QV4::RegExp::create(scope.engine, QString(), false, false));
+ global = false;
o->initProperties();
}