aboutsummaryrefslogtreecommitdiffstats
path: root/src/v4/qv4object.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-04-12 14:43:58 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-04-12 15:27:41 +0200
commite49724a4435a2a5ae5f33901a26201222465dde9 (patch)
tree8867c793d2e49aa6a78980bcf450232f87229341 /src/v4/qv4object.h
parentb85758207a906f2b0dfc1cbb7f66878bf53f86e8 (diff)
Remove context arguments where they aren't required
A bunch of methods took pointers to the current execution context even though they don't require it. Change-Id: I2a504a72069af16bb8bdbb62be438ee1cab723b0 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/v4/qv4object.h')
-rw-r--r--src/v4/qv4object.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/v4/qv4object.h b/src/v4/qv4object.h
index 9919ce3ade..f82f953970 100644
--- a/src/v4/qv4object.h
+++ b/src/v4/qv4object.h
@@ -128,17 +128,17 @@ struct Q_V4_EXPORT Object: Managed {
Object(ExecutionContext *context);
~Object();
- Property *__getOwnProperty__(ExecutionContext *ctx, String *name, PropertyAttributes *attrs = 0);
- Property *__getOwnProperty__(ExecutionContext *ctx, uint index, PropertyAttributes *attrs = 0);
+ Property *__getOwnProperty__(String *name, PropertyAttributes *attrs = 0);
+ Property *__getOwnProperty__(uint index, PropertyAttributes *attrs = 0);
- Property *__getPropertyDescriptor__(const ExecutionContext *ctx, String *name, PropertyAttributes *attrs = 0) const;
- Property *__getPropertyDescriptor__(const ExecutionContext *ctx, uint index, PropertyAttributes *attrs = 0) const;
+ Property *__getPropertyDescriptor__(String *name, PropertyAttributes *attrs = 0) const;
+ Property *__getPropertyDescriptor__(uint index, PropertyAttributes *attrs = 0) const;
- bool __hasProperty__(const ExecutionContext *ctx, String *name) const {
- return __getPropertyDescriptor__(ctx, name);
+ bool __hasProperty__(String *name) const {
+ return __getPropertyDescriptor__(name);
}
- bool __hasProperty__(const ExecutionContext *ctx, uint index) const {
- return __getPropertyDescriptor__(ctx, index);
+ bool __hasProperty__(uint index) const {
+ return __getPropertyDescriptor__(index);
}
bool __defineOwnProperty__(ExecutionContext *ctx, Property *current, String *member, const Property &p, PropertyAttributes attrs);