aboutsummaryrefslogtreecommitdiffstats
path: root/qmljs_objects.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2012-12-11 23:58:40 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2012-12-11 15:08:28 +0100
commit381ce0e902254f39b411f3b21548943720e3db0c (patch)
treedfaaaccc967480e58c48755e3bfa8fe7f4d4950d /qmljs_objects.h
parentd72158d6c584e0a3df92f6131cd26ed930c6fc4a (diff)
Make the Math constants constant
Mark the Math.pi etc. constants as readonly. Change-Id: I9224400ae48c7f21fc3b0478898c7c78aa7f45df Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'qmljs_objects.h')
-rw-r--r--qmljs_objects.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qmljs_objects.h b/qmljs_objects.h
index 9daa84132b..51127f6268 100644
--- a/qmljs_objects.h
+++ b/qmljs_objects.h
@@ -452,6 +452,7 @@ struct Object: Managed {
virtual bool __hasProperty__(const ExecutionContext *ctx, String *name) const;
virtual bool __delete__(ExecutionContext *ctx, String *name);
virtual bool __defineOwnProperty__(ExecutionContext *ctx, String *name, PropertyDescriptor *desc);
+ bool __defineOwnProperty__(ExecutionContext *ctx, const QString &name, PropertyDescriptor *desc);
virtual Value call(ExecutionContext *context, Value, Value *, int);