From 1b09c46051b92d072ff0bc9b8044ce79f00225fe Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Mon, 6 Jan 2025 15:16:40 +0100 Subject: [PATCH] CompactContinuation: make type member const Because it can be. Helps readers understand that the type of a continuation doesn't change once constructed. Amends 699162c6fa6121cc496338f1d8d6e1b4287f7760. Change-Id: I43848204cfd8584e6e55d7fbca1b22d30b391e50 Reviewed-by: Ivan Solovev (cherry picked from commit 9dadca4d4e6058299f9d50ae28fd734717d7fdc5) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/thread/qfuture_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/thread/qfuture_impl.h b/src/corelib/thread/qfuture_impl.h index 01afa64cd6e..088d280e8fe 100644 --- a/src/corelib/thread/qfuture_impl.h +++ b/src/corelib/thread/qfuture_impl.h @@ -361,7 +361,7 @@ protected: QFuture parentFuture; QThreadPool *threadPool = nullptr; QRunnable *runObj = nullptr; - Type type; + const Type type; }; #ifndef QT_NO_EXCEPTIONS