diff options
author | Lars Knoll <[email protected]> | 2013-09-26 12:04:52 +0200 |
---|---|---|
committer | The Qt Project <[email protected]> | 2013-09-28 13:33:46 +0200 |
commit | d2e2a5b59c617e6cf7236cf36e9c20fe9ea36fdb (patch) | |
tree | 1fc21beff4add85e68a61b7c88b5d5f928bec6e8 /src/qml/jsruntime/qv4context.cpp | |
parent | 18d4794e3f614eec8594f6636d569af8bc112618 (diff) |
Remove Value::fromString()
replaced with call to the GC safe ExceutionEngine::newString()
method.
Change-Id: I7258296e75ca724ff42b94a0d147bc33a05f8f68
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4context.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4context.cpp b/src/qml/jsruntime/qv4context.cpp index d8990bf8be..aa0688ee9b 100644 --- a/src/qml/jsruntime/qv4context.cpp +++ b/src/qml/jsruntime/qv4context.cpp @@ -604,7 +604,7 @@ void ExecutionContext::throwError(const ValueRef value) void ExecutionContext::throwError(const QString &message) { Scope scope(this); - ScopedValue v(scope, Value::fromString(this, message)); + ScopedValue v(scope, engine->newString(message)); v = engine->newErrorObject(v); throwError(v); } @@ -640,7 +640,7 @@ void ExecutionContext::throwTypeError(const QString &message) void ExecutionContext::throwUnimplemented(const QString &message) { Scope scope(this); - ScopedValue v(scope, Value::fromString(this, QStringLiteral("Unimplemented ") + message)); + ScopedValue v(scope, engine->newString(QStringLiteral("Unimplemented ") + message)); v = engine->newErrorObject(v); throwError(v); } |