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. Pick-to: 6.9 Change-Id: I43848204cfd8584e6e55d7fbca1b22d30b391e50 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
This commit is contained in:
parent
21811161c9
commit
9dadca4d4e
@ -361,7 +361,7 @@ protected:
|
|||||||
QFuture<ParentResultType> parentFuture;
|
QFuture<ParentResultType> parentFuture;
|
||||||
QThreadPool *threadPool = nullptr;
|
QThreadPool *threadPool = nullptr;
|
||||||
QRunnable *runObj = nullptr;
|
QRunnable *runObj = nullptr;
|
||||||
Type type;
|
const Type type;
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifndef QT_NO_EXCEPTIONS
|
#ifndef QT_NO_EXCEPTIONS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user