summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2023-09-26 11:02:14 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-09-29 09:15:25 +0000
commitfd36add01cdb266a8a32550d1f102ba8962b9ca9 (patch)
tree03b94c2d51f74dbca6a52afb6794866bdb0722fc
parent61a83afa64bff38853a9b20177e88841d1740af6 (diff)
Fix unused variable warning
Change-Id: Id874c348952e6610938a68558583d3f9f6dcbcfd Reviewed-by: Robert Griebl <robert.griebl@qt.io> (cherry picked from commit be0b01b99ee5457f13748801280149f342866f8f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/auto/core/qifpendingreply/tst_qifpendingreply.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/core/qifpendingreply/tst_qifpendingreply.cpp b/tests/auto/core/qifpendingreply/tst_qifpendingreply.cpp
index e5559221..9ef54ec7 100644
--- a/tests/auto/core/qifpendingreply/tst_qifpendingreply.cpp
+++ b/tests/auto/core/qifpendingreply/tst_qifpendingreply.cpp
@@ -157,7 +157,7 @@ template <typename T> void tst_QIfPendingReply::test(QIfPendingReply<T> reply, b
template <typename T> void tst_QIfPendingReply::createThenCallbacks(QIfPendingReply<T> reply, bool *successCalled, bool *failedCalled)
{
- reply.then([=](const T &value){*successCalled = true;}, [=](){*failedCalled = true;});
+ reply.then([=](const T &){*successCalled = true;}, [=](){*failedCalled = true;});
}
template <> void tst_QIfPendingReply::createThenCallbacks(QIfPendingReply<void> reply, bool *successCalled, bool *failedCalled)