diff options
author | Lars Knoll <[email protected]> | 2015-05-01 00:08:55 +0200 |
---|---|---|
committer | Simon Hausmann <[email protected]> | 2015-06-17 09:03:48 +0000 |
commit | 64199b0a5842b6b57f694c14d7f1327cf5f2344f (patch) | |
tree | 5846b6e7866a5abb10bafcdefafe5fc0ceff171f /src/qml/jsruntime/qv4runtime.cpp | |
parent | 81d8e36c1732854a0c6b0312c0bf42804d30192e (diff) |
Store a Heap::String pointer in StringObject
Change-Id: I926c5bb2dd4f1613af6737d4200e568f0ec13d58
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4runtime.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4runtime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4runtime.cpp b/src/qml/jsruntime/qv4runtime.cpp index ad5b27b456..4026be75e4 100644 --- a/src/qml/jsruntime/qv4runtime.cpp +++ b/src/qml/jsruntime/qv4runtime.cpp @@ -438,7 +438,7 @@ Heap::Object *RuntimeHelpers::convertToObject(ExecutionEngine *engine, const Val return engine->newBooleanObject(value.booleanValue()); case Value::Managed_Type: Q_ASSERT(value.isString()); - return engine->newStringObject(value); + return engine->newStringObject(value.stringValue()); case Value::Integer_Type: default: // double return engine->newNumberObject(value.asDouble()); |