summaryrefslogtreecommitdiff
path: root/tests/auto/webchannel/tst_webchannel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/webchannel/tst_webchannel.cpp')
-rw-r--r--tests/auto/webchannel/tst_webchannel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/webchannel/tst_webchannel.cpp b/tests/auto/webchannel/tst_webchannel.cpp
index 4941a7b..3f2c435 100644
--- a/tests/auto/webchannel/tst_webchannel.cpp
+++ b/tests/auto/webchannel/tst_webchannel.cpp
@@ -565,7 +565,7 @@ void TestWebChannel::testInvokeMethodConversion()
int getterMethod = metaObject()->indexOfMethod("readJsonValue()");
QVERIFY(getterMethod != -1);
auto retVal = channel.d_func()->publisher->invokeMethod(this, getterMethod, {});
- QCOMPARE(retVal, args.at(0).toVariant());
+ QCOMPARE(retVal, QVariant(args.at(0)));
}
{
QJsonObject object;