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/qv4value.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/qv4value.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4value.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/qml/jsruntime/qv4value.cpp b/src/qml/jsruntime/qv4value.cpp index 66e80cfa01..623f9ae3b6 100644 --- a/src/qml/jsruntime/qv4value.cpp +++ b/src/qml/jsruntime/qv4value.cpp @@ -202,16 +202,6 @@ bool Value::sameValue(Value other) const { return false; } -Value Value::fromString(ExecutionContext *ctx, const QString &s) -{ - return fromManaged(ctx->engine->newString(s)->getPointer()); -} - -Value Value::fromString(ExecutionEngine *engine, const QString &s) -{ - return fromManaged(engine->newString(s)->getPointer()); -} - int Primitive::toInt32(double number) { |