diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-04-27 11:40:04 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-05-02 14:20:33 +0000 |
commit | a6eb09fa2015a6cff1c8344e5784235d6292098f (patch) | |
tree | e91188032ed251f22a0c07eb72baddccba45fee0 /src/qml/jsruntime/qv4stringiterator.cpp | |
parent | 8761cbd4f7aada5a976831ff404b004f537a660b (diff) |
Cleanup IteratorPrototype::createIterResult API
Change-Id: I42fe22c65f0551287f4acdc5a76889f07cca042c
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4stringiterator.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4stringiterator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4stringiterator.cpp b/src/qml/jsruntime/qv4stringiterator.cpp index abdd0ee051..810ed333e4 100644 --- a/src/qml/jsruntime/qv4stringiterator.cpp +++ b/src/qml/jsruntime/qv4stringiterator.cpp @@ -65,7 +65,7 @@ ReturnedValue StringIteratorPrototype::method_next(const FunctionObject *b, cons ScopedString s(scope, thisObject->d()->iteratedString); if (!s) { QV4::Value undefined = Primitive::undefinedValue(); - return IteratorPrototype::createIterResultObject(scope.engine, undefined, ScopedValue(scope, true); + return IteratorPrototype::createIterResultObject(scope.engine, undefined, true); } quint32 index = thisObject->d()->nextIndex; @@ -76,7 +76,7 @@ ReturnedValue StringIteratorPrototype::method_next(const FunctionObject *b, cons if (index >= len) { thisObject->d()->iteratedString.set(scope.engine, nullptr); QV4::Value undefined = Primitive::undefinedValue(); - return IteratorPrototype::createIterResultObject(scope.engine, undefined, ScopedValue(scope, true); + return IteratorPrototype::createIterResultObject(scope.engine, undefined, true); } QChar ch = str.at(index); @@ -90,6 +90,6 @@ ReturnedValue StringIteratorPrototype::method_next(const FunctionObject *b, cons thisObject->d()->nextIndex += num; ScopedString resultString(scope, scope.engine->newString(s->toQString().mid(index, num))); - return IteratorPrototype::createIterResultObject(scope.engine, resultString, ScopedValue(scope, false); + return IteratorPrototype::createIterResultObject(scope.engine, resultString, false); } |