diff options
Diffstat (limited to 'src/qml/jsruntime/qv4jsonobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4jsonobject.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4jsonobject.cpp b/src/qml/jsruntime/qv4jsonobject.cpp index d634e783bd..f703e85399 100644 --- a/src/qml/jsruntime/qv4jsonobject.cpp +++ b/src/qml/jsruntime/qv4jsonobject.cpp @@ -905,11 +905,11 @@ ReturnedValue JsonObject::method_stringify(CallContext *ctx) if (v->as<NumberObject>() || v->as<StringObject>() || v->isNumber()) *v = RuntimeHelpers::toString(scope.engine, *v); if (!v->isString()) { - v->m = 0; + v->setM(0); } else { for (uint j = 0; j <i; ++j) { - if (stringify.propertyList[j].m == v->m) { - v->m = 0; + if (stringify.propertyList[j].m() == v->m()) { + v->setM(0); break; } } |