diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-05-21 12:37:52 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-05-21 12:55:26 +0200 |
commit | db3c23a9a44f93efff1e24f597bc8b487173e9c1 (patch) | |
tree | cadae56d0380a68af6a16c97ec36f18e5d5a6fbe /src/qml/qml/qqmlvme.cpp | |
parent | d8891234812898b1cab406dae9fab9f818bb1efe (diff) |
Get rid of v8::Number
Change-Id: I38bdf8fe4dd73c61317912ec6308a9a1e870ad99
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlvme.cpp')
-rw-r--r-- | src/qml/qml/qqmlvme.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlvme.cpp b/src/qml/qml/qqmlvme.cpp index 59b93366d0..bc918cfa4d 100644 --- a/src/qml/qml/qqmlvme.cpp +++ b/src/qml/qml/qqmlvme.cpp @@ -421,7 +421,7 @@ QObject *QQmlVME::run(QList<QQmlError> *errors, // We deliberately do not use string converters here QML_STORE_VAR(StoreVar, ep->v8engine()->fromVariant(PRIMITIVES.at(instr.value))); QML_STORE_VAR(StoreVarInteger, QV4::Value::fromInt32(instr.value)); - QML_STORE_VAR(StoreVarDouble, v8::Number::New(instr.value)); + QML_STORE_VAR(StoreVarDouble, QV4::Value::fromDouble(instr.value)); QML_STORE_VAR(StoreVarBool, v8::Boolean::New(instr.value)); // Store a literal value in a QJSValue property. |