aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4numberobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4numberobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4numberobject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4numberobject.cpp b/src/qml/jsruntime/qv4numberobject.cpp
index c97e86f2cd..1a41150bd2 100644
--- a/src/qml/jsruntime/qv4numberobject.cpp
+++ b/src/qml/jsruntime/qv4numberobject.cpp
@@ -108,7 +108,7 @@ inline ReturnedValue thisNumberValue(ExecutionContext *ctx)
NumberObject *n = ctx->callData->thisObject.asNumberObject();
if (!n)
return ctx->throwTypeError();
- return n->value.asReturnedValue();
+ return n->value().asReturnedValue();
}
inline double thisNumber(ExecutionContext *ctx)
@@ -118,7 +118,7 @@ inline double thisNumber(ExecutionContext *ctx)
NumberObject *n = ctx->callData->thisObject.asNumberObject();
if (!n)
return ctx->throwTypeError();
- return n->value.asDouble();
+ return n->value().asDouble();
}
ReturnedValue NumberPrototype::method_toString(CallContext *ctx)