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 7ea91c441d..29ccecf1f2 100644
--- a/src/qml/jsruntime/qv4object.cpp
+++ b/src/qml/jsruntime/qv4object.cpp
@@ -791,10 +791,10 @@ bool Object::virtualHasProperty(const Managed *m, PropertyKey id)
return false;
}
-PropertyAttributes Object::virtualGetOwnProperty(Managed *m, PropertyKey id, Property *p)
+PropertyAttributes Object::virtualGetOwnProperty(const Managed *m, PropertyKey id, Property *p)
{
PropertyAttributes attrs;
- Object *o = static_cast<Object *>(m);
+ const Object *o = static_cast<const Object *>(m);
if (id.isArrayIndex()) {
uint index = id.asArrayIndex();
if (o->arrayData()) {