aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4object.cpp')
-rw-r--r--src/qml/jsruntime/qv4object.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4object.cpp b/src/qml/jsruntime/qv4object.cpp
index 354c6ceb0c..3fcc52e995 100644
--- a/src/qml/jsruntime/qv4object.cpp
+++ b/src/qml/jsruntime/qv4object.cpp
@@ -374,7 +374,7 @@ bool Object::hasOwnProperty(uint index) const
if (!arrayData()->isEmpty(index))
return true;
if (isStringObject()) {
- String *s = static_cast<const StringObject *>(this)->value.asString();
+ String *s = static_cast<const StringObject *>(this)->d()->value.asString();
if (index < (uint)s->length())
return true;
}
@@ -434,7 +434,7 @@ PropertyAttributes Object::queryIndexed(const Managed *m, uint index)
return o->arrayData()->attributes(index);
if (o->isStringObject()) {
- String *s = static_cast<const StringObject *>(o)->value.asString();
+ String *s = static_cast<const StringObject *>(o)->d()->value.asString();
if (index < (uint)s->length())
return (Attr_NotWritable|Attr_NotConfigurable);
}