diff options
Diffstat (limited to 'src/qml/jsruntime/qv4dateobject_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4dateobject_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4dateobject_p.h b/src/qml/jsruntime/qv4dateobject_p.h index 9b0eb91109..4bb911d44e 100644 --- a/src/qml/jsruntime/qv4dateobject_p.h +++ b/src/qml/jsruntime/qv4dateobject_p.h @@ -52,7 +52,7 @@ struct DateObject : Object { value = Encode(qSNaN()); } - DateObject(QV4::ExecutionEngine *engine, const ValueRef date) + DateObject(QV4::ExecutionEngine *engine, const Value &date) : Object(engine->emptyClass, engine->datePrototype.asObject()) { value = date; @@ -74,7 +74,7 @@ struct DateObject: Object { Value date() const { return d()->value; } Value &date() { return d()->value; } - void setDate(const ValueRef date) { d()->value = date; } + void setDate(const Value &date) { d()->value = date; } QDateTime toQDateTime() const; }; |