From f535958c2b196b6c1585d12d99b71321908846d4 Mon Sep 17 00:00:00 2001 From: Ivan Solovev Date: Mon, 20 Mar 2023 17:19:28 +0100 Subject: Do not use deprecated QtFuture::makeReadyFuture() Task-number: QTBUG-109677 Change-Id: I09d78b3479978878fc98aca6bbc6e1316001a912 Reviewed-by: Marc Mutz --- tests/auto/webchannel/tst_webchannel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/auto/webchannel/tst_webchannel.cpp b/tests/auto/webchannel/tst_webchannel.cpp index 4884ea9..6e1a772 100644 --- a/tests/auto/webchannel/tst_webchannel.cpp +++ b/tests/auto/webchannel/tst_webchannel.cpp @@ -187,7 +187,7 @@ QVariantList convert_to_js(const TestStructVector &list) #if QT_CONFIG(future) QFuture TestObject::futureIntResult() const { - return QtFuture::makeReadyFuture(42); + return QtFuture::makeReadyValueFuture(42); } QFuture TestObject::futureDelayedIntResult() const @@ -213,12 +213,12 @@ QFuture TestObject::futureIntResultFromThread() const QFuture TestObject::futureVoidResult() const { - return QtFuture::makeReadyFuture(); + return QtFuture::makeReadyVoidFuture(); } QFuture TestObject::futureStringResult() const { - return QtFuture::makeReadyFuture("foo"); + return QtFuture::makeReadyValueFuture("foo"); } QFuture TestObject::cancelledFuture() const -- cgit v1.2.1