aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4dateobject_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-09-13 17:07:44 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-18 13:14:08 +0200
commit9dcc12d52343960400192c817f54a16f7e1f8247 (patch)
tree24d4b194f6dd2f5b35296dfb8b385f6e714611c0 /src/qml/jsruntime/qv4dateobject_p.h
parent19f7850176e95fb181efb45b2c9a5319582a086c (diff)
Convert a few more methods in ExecutionEngine to use protected pointers
Change-Id: I2e6b1b9dff52bbd16f35a00152c9ac557f8346eb Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4dateobject_p.h')
-rw-r--r--src/qml/jsruntime/qv4dateobject_p.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4dateobject_p.h b/src/qml/jsruntime/qv4dateobject_p.h
index b0e85606cb..45a9420a41 100644
--- a/src/qml/jsruntime/qv4dateobject_p.h
+++ b/src/qml/jsruntime/qv4dateobject_p.h
@@ -52,14 +52,21 @@ class QDateTime;
namespace QV4 {
struct DateObject: Object {
+ Q_MANAGED
Value value;
- DateObject(ExecutionEngine *engine, const Value &value): Object(engine->dateClass), value(value) { type = Type_DateObject; }
+ DateObject(ExecutionEngine *engine, const Value &value): Object(engine->dateClass), value(value) {
+ vtbl = &static_vtbl;
+ type = Type_DateObject;
+ }
DateObject(ExecutionEngine *engine, const QDateTime &value);
QDateTime toQDateTime() const;
protected:
- DateObject(InternalClass *ic): Object(ic), value(Value::fromDouble(qSNaN())) { type = Type_DateObject; }
+ DateObject(InternalClass *ic): Object(ic), value(Value::fromDouble(qSNaN())) {
+ vtbl = &static_vtbl;
+ type = Type_DateObject;
+ }
};
struct DateCtor: FunctionObject