diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2017-12-19 12:29:10 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-01-08 12:32:26 +0000 |
commit | c0250b67e42afc20734e39045966c97a6d421e5a (patch) | |
tree | b5f232318e99813862403f1ce831be3d23c77f34 /tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | |
parent | d949d52383e92ba814e935ed2ef2135a1af9cd9b (diff) |
Avoid warning about comparing QVariant::Bool to QMetatype::Bool
Change-Id: Icc2ca6c5cdb259e415abd7a6b43a0e8b0b142af5
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index 90bff510e0..64cf27ae1f 100644 --- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp +++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp @@ -8232,7 +8232,7 @@ void tst_qqmlecmascript::instanceof() QJSEngine engine; QJSValue ret = engine.evaluate(setupCode + ";\n" + QTest::currentDataTag()); - if (expectedValue.type() == QMetaType::Bool) { + if (expectedValue.type() == QVariant::Bool) { bool returnValue = ret.toBool(); QVERIFY2(!ret.isError(), qPrintable(ret.toString())); QCOMPARE(returnValue, expectedValue.toBool()); |