diff options
Diffstat (limited to 'src/qml/jsruntime/qv4stringobject.cpp')
| -rw-r--r-- | src/qml/jsruntime/qv4stringobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4stringobject.cpp b/src/qml/jsruntime/qv4stringobject.cpp index 22e746311c..26f662d005 100644 --- a/src/qml/jsruntime/qv4stringobject.cpp +++ b/src/qml/jsruntime/qv4stringobject.cpp @@ -379,7 +379,7 @@ ReturnedValue StringPrototype::method_match(SimpleCallContext *context) return exec->call(callData); ScopedString lastIndex(scope, context->engine->newString(QStringLiteral("lastIndex"))); - rx->put(lastIndex.getPointer(), Value::fromInt32(0)); + rx->put(lastIndex, ScopedValue(scope, Value::fromInt32(0))); Scoped<ArrayObject> a(scope, context->engine->newArrayObject()); double previousLastIndex = 0; @@ -396,7 +396,7 @@ ReturnedValue StringPrototype::method_match(SimpleCallContext *context) double thisIndex = index->toInteger(); if (previousLastIndex == thisIndex) { previousLastIndex = thisIndex + 1; - rx->put(lastIndex.getPointer(), Value::fromDouble(previousLastIndex)); + rx->put(lastIndex, ScopedValue(scope, Value::fromDouble(previousLastIndex))); } else { previousLastIndex = thisIndex; } |
