diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-09-18 10:38:53 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-09-23 17:27:31 +0000 |
commit | c7d097297d789dd7c32a77d8a038067db364734b (patch) | |
tree | 23b79aace557bb156b70d7ee8a53ff6c4b05dadd /src/qml/jsruntime/qv4argumentsobject_p.h | |
parent | bdf948b79db38ec02e89b64fd13b7146dd3f135c (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 <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4argumentsobject_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4argumentsobject_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4argumentsobject_p.h b/src/qml/jsruntime/qv4argumentsobject_p.h index 00302027d1..e1aeae6034 100644 --- a/src/qml/jsruntime/qv4argumentsobject_p.h +++ b/src/qml/jsruntime/qv4argumentsobject_p.h @@ -104,7 +104,7 @@ struct ArgumentsObject: Object { static ReturnedValue virtualGet(const Managed *m, PropertyKey id, const Value *receiver, bool *hasProperty); static bool virtualPut(Managed *m, PropertyKey id, const Value &value, Value *receiver); static bool virtualDeleteProperty(Managed *m, PropertyKey id); - static PropertyAttributes virtualGetOwnProperty(Managed *m, PropertyKey id, Property *p); + static PropertyAttributes virtualGetOwnProperty(const Managed *m, PropertyKey id, Property *p); static qint64 virtualGetLength(const Managed *m); static OwnPropertyKeyIterator *virtualOwnPropertyKeys(const Object *m, Value *target); |