aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4stringobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4stringobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4stringobject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4stringobject.cpp b/src/qml/jsruntime/qv4stringobject.cpp
index c6cc5a4639..628c220bae 100644
--- a/src/qml/jsruntime/qv4stringobject.cpp
+++ b/src/qml/jsruntime/qv4stringobject.cpp
@@ -77,14 +77,14 @@ void Heap::StringObject::init()
{
Object::init();
Q_ASSERT(vtable() == QV4::StringObject::staticVTable());
- string = internalClass->engine->id_empty()->d();
+ string.set(internalClass->engine, internalClass->engine->id_empty()->d());
*propertyData(LengthPropertyIndex) = Primitive::fromInt32(0);
}
void Heap::StringObject::init(const QV4::String *str)
{
Object::init();
- string = str->d();
+ string.set(internalClass->engine, str->d());
*propertyData(LengthPropertyIndex) = Primitive::fromInt32(length());
}