From 1b008d6fb89c82d4a31d30cc1abe3128c723a851 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Sat, 5 Apr 2014 21:03:37 +0200 Subject: Convert Boolean, Number and DateObject Change-Id: I8815578422fe1af87eb5f02899f35131fea70b76 Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4booleanobject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/jsruntime/qv4booleanobject.cpp') diff --git a/src/qml/jsruntime/qv4booleanobject.cpp b/src/qml/jsruntime/qv4booleanobject.cpp index 662ec64efb..b2851abd7d 100644 --- a/src/qml/jsruntime/qv4booleanobject.cpp +++ b/src/qml/jsruntime/qv4booleanobject.cpp @@ -87,7 +87,7 @@ ReturnedValue BooleanPrototype::method_toString(CallContext *ctx) Scoped thisObject(scope, ctx->callData->thisObject); if (!thisObject) return ctx->throwTypeError(); - result = thisObject->value.booleanValue(); + result = thisObject->value().booleanValue(); } return Encode(ctx->engine->newString(QLatin1String(result ? "true" : "false"))); @@ -103,5 +103,5 @@ ReturnedValue BooleanPrototype::method_valueOf(CallContext *ctx) if (!thisObject) return ctx->throwTypeError(); - return thisObject->value.asReturnedValue(); + return thisObject->value().asReturnedValue(); } -- cgit v1.2.3