diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2014-12-30 11:39:53 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2015-01-02 21:10:43 +0100 |
commit | 2056538feab7739689742de4efe370b35864bc9a (patch) | |
tree | 82845eea2eca647bc45dc63e13ea35712a692e54 /src/qmltest | |
parent | 96178192c451a5e26e30e14a619b96aacd16c29b (diff) |
Remove v8engine dependency in toVariant conversions
Change-Id: I0f2f77c9cc268a0c5ca3ffe0cd66fc98bb1964b3
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qmltest')
-rw-r--r-- | src/qmltest/quicktestresult.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/qmltest/quicktestresult.cpp b/src/qmltest/quicktestresult.cpp index 868a378318..6e64979385 100644 --- a/src/qmltest/quicktestresult.cpp +++ b/src/qmltest/quicktestresult.cpp @@ -475,13 +475,12 @@ void QuickTestResult::stringify(QQmlV4Function *args) QV4::ScopedValue value(scope, (*args)[0]); QString result; - QV8Engine *engine = args->engine(); //Check for Object Type if (value->isObject() && !value->asFunctionObject() && !value->asArrayObject()) { - QVariant v = engine->toVariant(value, QMetaType::UnknownType); + QVariant v = QV8Engine::toVariant(scope.engine, value, QMetaType::UnknownType); if (v.isValid()) { switch (v.type()) { case QVariant::Vector3D: @@ -505,7 +504,7 @@ void QuickTestResult::stringify(QQmlV4Function *args) result.append(tmp); } - args->setReturnValue(args->engine()->toString(result)); + args->setReturnValue(args->v4engine()->v8Engine->toString(result)); } bool QuickTestResult::compare |