From 31084c37f60a54d0d1ab2e07a79e070268540498 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Fri, 7 Nov 2014 18:51:19 +0100 Subject: Convert methods in RuntimeHelpers to take an engine pointer This is safer and cleaner than to use a context pointer. Change-Id: Id5ef4e6667571897cd029125a0bdc18ce299da6d Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4jsonobject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/jsruntime/qv4jsonobject.cpp') diff --git a/src/qml/jsruntime/qv4jsonobject.cpp b/src/qml/jsruntime/qv4jsonobject.cpp index 4d8f96cac3..000ed326cd 100644 --- a/src/qml/jsruntime/qv4jsonobject.cpp +++ b/src/qml/jsruntime/qv4jsonobject.cpp @@ -921,7 +921,7 @@ ReturnedValue JsonObject::method_stringify(CallContext *ctx) for (uint i = 0; i < arrayLen; ++i) { v = o->getIndexed(i); if (v->asNumberObject() || v->asStringObject() || v->isNumber()) - v = RuntimeHelpers::toString(ctx, v); + v = RuntimeHelpers::toString(scope.engine, v); if (v->isString()) { String *s = v->stringValue(); if (!stringify.propertyList.contains(s)) -- cgit v1.2.3