aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4dateobject_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-09-30 15:41:24 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-02 16:07:33 +0200
commit1e454c8aa6ad0782eee1c8c94ac2780954a08351 (patch)
treee3be185e878972ff018e9610fea15248877ca499 /src/qml/jsruntime/qv4dateobject_p.h
parent430dfd326cb9d8dab8ebd11e83dd52e6d55c4229 (diff)
Remove more uses of Value
Change-Id: I889e760f75b485a28e1f2a2c26b2337ae9bfafac 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.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4dateobject_p.h b/src/qml/jsruntime/qv4dateobject_p.h
index 56588580ff..5cd03024c5 100644
--- a/src/qml/jsruntime/qv4dateobject_p.h
+++ b/src/qml/jsruntime/qv4dateobject_p.h
@@ -53,19 +53,21 @@ namespace QV4 {
struct DateObject: Object {
Q_MANAGED
- Value value;
- DateObject(ExecutionEngine *engine, const Value &value): Object(engine->dateClass), value(value) {
+ SafeValue value;
+ DateObject(ExecutionEngine *engine, const ValueRef date): Object(engine->dateClass) {
vtbl = &static_vtbl;
type = Type_DateObject;
+ value = date;
}
DateObject(ExecutionEngine *engine, const QDateTime &value);
QDateTime toQDateTime() const;
protected:
- DateObject(InternalClass *ic): Object(ic), value(Primitive::fromDouble(qSNaN())) {
+ DateObject(InternalClass *ic): Object(ic) {
vtbl = &static_vtbl;
type = Type_DateObject;
+ value = Primitive::fromDouble(qSNaN());
}
};