diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-09-19 09:10:42 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-22 01:06:20 +0200 |
commit | 332b870bd8f0fba6f09e539376a674d7a4413631 (patch) | |
tree | a3977c20b6331e1e6ab1d85e5e25836155797d0c /src/qml/qml/v8 | |
parent | df5edd28bc4258b89d9d5ffdddf837f339a17aad (diff) |
Convert putIndexed()
Change-Id: I7d02b0fdf45079d0f7afcfb6d3158dd60cb09f33
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/v8')
-rw-r--r-- | src/qml/qml/v8/qqmlbuiltinfunctions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/v8/qqmlbuiltinfunctions.cpp b/src/qml/qml/v8/qqmlbuiltinfunctions.cpp index c5cba16f48..a83b2d7ffd 100644 --- a/src/qml/qml/v8/qqmlbuiltinfunctions.cpp +++ b/src/qml/qml/v8/qqmlbuiltinfunctions.cpp @@ -959,7 +959,7 @@ ReturnedValue QtObject::method_createQmlObject(SimpleCallContext *ctx) qmlerror->put((s = v4->newString("columnNumber")), (v = QV4::Value::fromInt32(error.column()))); qmlerror->put((s = v4->newString("fileName")), (v = Value::fromString(v4->newString(error.url().toString())))); qmlerror->put((s = v4->newString("message")), (v = Value::fromString(v4->newString(error.description())))); - qmlerrors->putIndexed(ii, qmlerror.asValue()); + qmlerrors->putIndexed(ii, qmlerror); } Scoped<Object> errorObject(scope, v4->newErrorObject(Value::fromString(v4->newString(errorstr)))); |