aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/testlib/main.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-09-25 13:52:15 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-28 13:33:32 +0200
commit4d40fa24c3ee8def2f27bd237fc8dec25cf3f473 (patch)
treecb4ad758f03cf204cbae1e7d086bfeaf73a64bc3 /src/imports/testlib/main.cpp
parentabd82c68d564c97a4452a3afa2d63320e7292b30 (diff)
Move Value::toInteger(double) and related to Primitive
Also clean up a few other direct uses of Value Change-Id: Ie27d42c1b31b9e6d16d0a60071cb5e4e1c5b9e8b Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/imports/testlib/main.cpp')
-rw-r--r--src/imports/testlib/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/testlib/main.cpp b/src/imports/testlib/main.cpp
index 47570afbda..3d0954768a 100644
--- a/src/imports/testlib/main.cpp
+++ b/src/imports/testlib/main.cpp
@@ -100,7 +100,7 @@ public Q_SLOTS:
QQmlEngine *engine = qmlEngine(this);
QV4::ExecutionEngine *v4 = QV8Engine::getV4(engine->handle());
QV4::Scope scope(v4);
- QV4::ScopedValue s(scope, QV4::Value::fromString(v4->newString(name)));
+ QV4::ScopedValue s(scope, v4->newString(name));
return QQmlV4Handle(s);
}