aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4value.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4value.cpp')
-rw-r--r--src/qml/jsruntime/qv4value.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4value.cpp b/src/qml/jsruntime/qv4value.cpp
index b256b04da0..66e80cfa01 100644
--- a/src/qml/jsruntime/qv4value.cpp
+++ b/src/qml/jsruntime/qv4value.cpp
@@ -204,12 +204,12 @@ bool Value::sameValue(Value other) const {
Value Value::fromString(ExecutionContext *ctx, const QString &s)
{
- return fromString(ctx->engine->newString(s));
+ return fromManaged(ctx->engine->newString(s)->getPointer());
}
Value Value::fromString(ExecutionEngine *engine, const QString &s)
{
- return fromString(engine->newString(s));
+ return fromManaged(engine->newString(s)->getPointer());
}