aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4stringiterator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4stringiterator.cpp')
-rw-r--r--src/qml/jsruntime/qv4stringiterator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4stringiterator.cpp b/src/qml/jsruntime/qv4stringiterator.cpp
index 810ed333e4..62db83ff26 100644
--- a/src/qml/jsruntime/qv4stringiterator.cpp
+++ b/src/qml/jsruntime/qv4stringiterator.cpp
@@ -64,7 +64,7 @@ ReturnedValue StringIteratorPrototype::method_next(const FunctionObject *b, cons
ScopedString s(scope, thisObject->d()->iteratedString);
if (!s) {
- QV4::Value undefined = Primitive::undefinedValue();
+ QV4::Value undefined = Value::undefinedValue();
return IteratorPrototype::createIterResultObject(scope.engine, undefined, true);
}
@@ -75,7 +75,7 @@ ReturnedValue StringIteratorPrototype::method_next(const FunctionObject *b, cons
if (index >= len) {
thisObject->d()->iteratedString.set(scope.engine, nullptr);
- QV4::Value undefined = Primitive::undefinedValue();
+ QV4::Value undefined = Value::undefinedValue();
return IteratorPrototype::createIterResultObject(scope.engine, undefined, true);
}