aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4booleanobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4booleanobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4booleanobject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4booleanobject.cpp b/src/qml/jsruntime/qv4booleanobject.cpp
index 28589e4104..d85f4294ce 100644
--- a/src/qml/jsruntime/qv4booleanobject.cpp
+++ b/src/qml/jsruntime/qv4booleanobject.cpp
@@ -68,8 +68,8 @@ void BooleanPrototype::init(ExecutionEngine *engine, const Value &ctor)
ctor.objectValue()->defineReadonlyProperty(engine->id_length, Value::fromInt32(1));
ctor.objectValue()->defineReadonlyProperty(engine->id_prototype, Value::fromObject(this));
defineDefaultProperty(QStringLiteral("constructor"), ctor);
- defineDefaultProperty(QStringLiteral("toString"), method_toString);
- defineDefaultProperty(QStringLiteral("valueOf"), method_valueOf);
+ defineDefaultProperty(engine->id_toString, method_toString);
+ defineDefaultProperty(engine->id_valueOf, method_valueOf);
}
ReturnedValue BooleanPrototype::method_toString(SimpleCallContext *ctx)