diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-08-27 12:17:21 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-09-22 08:19:56 +0000 |
commit | 17a0c271e0ec606d15fc87dab23b2e3750c0e301 (patch) | |
tree | e1c5fb1065e687897388adb7cdbfa4fbbf707af7 /src/qml/jsruntime/qv4dateobject_p.h | |
parent | 833c99db20a6ccbf337d77855098141e008b04ee (diff) |
Move more objects over to the new allocation scheme
Change-Id: I0241efe10d115f8e4a646f840e47e220eb6cfc18
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4dateobject_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4dateobject_p.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/qml/jsruntime/qv4dateobject_p.h b/src/qml/jsruntime/qv4dateobject_p.h index 7a6413e820..434eebfa43 100644 --- a/src/qml/jsruntime/qv4dateobject_p.h +++ b/src/qml/jsruntime/qv4dateobject_p.h @@ -46,18 +46,16 @@ namespace QV4 { namespace Heap { struct DateObject : Object { - DateObject(InternalClass *ic, QV4::Object *prototype) - : Object(ic, prototype) + DateObject() { date = qSNaN(); } - DateObject(QV4::ExecutionEngine *engine, const Value &date) - : Object(engine->emptyClass, engine->datePrototype()) + DateObject(const Value &date) { this->date = date.toNumber(); } - DateObject(QV4::ExecutionEngine *engine, const QDateTime &date); + DateObject(const QDateTime &date); double date; }; |