aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4errorobject.cpp
diff options
context:
space:
mode:
authorOleg Shparber <trollixx@gmail.com>2014-11-28 00:20:29 -0800
committerOleg Shparber <trollixx@gmail.com>2014-12-12 03:50:50 +0100
commitfdd367efd705f958af1f70413e726d337e8ec1ca (patch)
tree5bbbb76480988a55141445996933e2330d23a563 /src/qml/jsruntime/qv4errorobject.cpp
parentf43928f6023f435dfe3e600dd4474cd2c7a92e16 (diff)
Add default parameter value for ExecutionEngine::newString()
Change-Id: I8efbfb07ea61e2c6d03eeb79671006d209e4d48e Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4errorobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4errorobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4errorobject.cpp b/src/qml/jsruntime/qv4errorobject.cpp
index d08619f881..b1c83a075a 100644
--- a/src/qml/jsruntime/qv4errorobject.cpp
+++ b/src/qml/jsruntime/qv4errorobject.cpp
@@ -356,7 +356,7 @@ void ErrorPrototype::init(ExecutionEngine *engine, Object *ctor, Object *obj)
ctor->defineReadonlyProperty(engine->id_length, Primitive::fromInt32(1));
obj->defineDefaultProperty(QStringLiteral("constructor"), (o = ctor));
obj->defineDefaultProperty(engine->id_toString, method_toString, 0);
- obj->defineDefaultProperty(QStringLiteral("message"), (s = engine->newString(QString())));
+ obj->defineDefaultProperty(QStringLiteral("message"), (s = engine->newString()));
}
ReturnedValue ErrorPrototype::method_toString(CallContext *ctx)