aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlxmlhttprequest.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-09-18 10:02:04 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-22 01:06:20 +0200
commit8b3623ee7b707e1b26ad48bdbf7816b95d9e0e24 (patch)
treeca8c955546b9a70c60a4befc7eeccc944bc16d58 /src/qml/qml/qqmlxmlhttprequest.cpp
parent055f71f87d5d58be2aafd6c0ef2b84d57ed48b63 (diff)
Start using StringRef for parameter passing
Change-Id: If2c41daeda2862cd1162c5da8163a9d62fe4111d Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlxmlhttprequest.cpp')
-rw-r--r--src/qml/qml/qqmlxmlhttprequest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlxmlhttprequest.cpp b/src/qml/qml/qqmlxmlhttprequest.cpp
index 131fb1c51f..53fb6ad477 100644
--- a/src/qml/qml/qqmlxmlhttprequest.cpp
+++ b/src/qml/qml/qqmlxmlhttprequest.cpp
@@ -1592,7 +1592,9 @@ struct QQmlXMLHttpRequestCtor : public FunctionObject
defineReadonlyProperty(engine, QStringLiteral("DONE"), Value::fromInt32(4));
if (!proto)
setupProto();
- defineDefaultProperty(engine->id_prototype, Value::fromObject(proto));
+ Scope scope(engine);
+ ScopedString s(scope, engine->id_prototype);
+ defineDefaultProperty(s, Value::fromObject(proto));
}
~QQmlXMLHttpRequestCtor()
{}