diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2023-03-20 17:19:28 +0100 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2023-04-11 14:52:32 +0200 |
commit | f535958c2b196b6c1585d12d99b71321908846d4 (patch) | |
tree | 9d53bf890c08ec28adb8f6bf7f927cf8aceef35a | |
parent | a812e96337318be3b86ca6063ab8cc152365d41c (diff) | |
download | qtwebchannel-f535958c2b196b6c1585d12d99b71321908846d4.tar.gz |
Do not use deprecated QtFuture::makeReadyFuture()
Task-number: QTBUG-109677
Change-Id: I09d78b3479978878fc98aca6bbc6e1316001a912
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
-rw-r--r-- | tests/auto/webchannel/tst_webchannel.cpp | 6 |
1 files 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<int> TestObject::futureIntResult() const { - return QtFuture::makeReadyFuture(42); + return QtFuture::makeReadyValueFuture(42); } QFuture<int> TestObject::futureDelayedIntResult() const @@ -213,12 +213,12 @@ QFuture<int> TestObject::futureIntResultFromThread() const QFuture<void> TestObject::futureVoidResult() const { - return QtFuture::makeReadyFuture(); + return QtFuture::makeReadyVoidFuture(); } QFuture<QString> TestObject::futureStringResult() const { - return QtFuture::makeReadyFuture<QString>("foo"); + return QtFuture::makeReadyValueFuture<QString>("foo"); } QFuture<int> TestObject::cancelledFuture() const |