path: root/src/qml/jsruntime/qv4object_p.h
diff options
authorLars Knoll <>2018-09-18 10:38:53 +0200
committerLars Knoll <>2018-09-23 17:27:31 +0000
commitc7d097297d789dd7c32a77d8a038067db364734b (patch)
tree23b79aace557bb156b70d7ee8a53ff6c4b05dadd /src/qml/jsruntime/qv4object_p.h
parentbdf948b79db38ec02e89b64fd13b7146dd3f135c (diff)
Make Object::getOwnProperty() const
Object::getOwnProperty never modifies the object, so make it a const member function. Change-Id: I175bb45d61a66a1d9f577c087129562d44d62e17 Reviewed-by: Erik Verbruggen <>
Diffstat (limited to 'src/qml/jsruntime/qv4object_p.h')
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4object_p.h b/src/qml/jsruntime/qv4object_p.h
index aca4f99750..c9b0ff7e1f 100644
--- a/src/qml/jsruntime/qv4object_p.h
+++ b/src/qml/jsruntime/qv4object_p.h
@@ -168,7 +168,7 @@ struct Q_QML_EXPORT Object: Managed {
const VTable *vtable() const { return d()->vtable(); }
- PropertyAttributes getOwnProperty(PropertyKey id, Property *p = nullptr) {
+ PropertyAttributes getOwnProperty(PropertyKey id, Property *p = nullptr) const {
return vtable()->getOwnProperty(this, id, p);
@@ -373,7 +373,7 @@ protected:
static bool virtualPut(Managed *m, PropertyKey id, const Value &value, Value *receiver);
static bool virtualDeleteProperty(Managed *m, PropertyKey id);
static bool virtualHasProperty(const Managed *m, PropertyKey id);
- static PropertyAttributes virtualGetOwnProperty(Managed *m, PropertyKey id, Property *p);
+ static PropertyAttributes virtualGetOwnProperty(const Managed *m, PropertyKey id, Property *p);
static bool virtualDefineOwnProperty(Managed *m, PropertyKey id, const Property *p, PropertyAttributes attrs);
static bool virtualIsExtensible(const Managed *m);
static bool virtualPreventExtensions(Managed *);