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 <ivan.solovev@qt.io> (cherry picked from commit 9dadca4d4e6058299f9d50ae28fd734717d7fdc5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
bf535c4c66
commit
1b09c46051
@ -361,7 +361,7 @@ protected:
|
||||
QFuture<ParentResultType> parentFuture;
|
||||
QThreadPool *threadPool = nullptr;
|
||||
QRunnable *runObj = nullptr;
|
||||
Type type;
|
||||
const Type type;
|
||||
};
|
||||
|
||||
#ifndef QT_NO_EXCEPTIONS
|
||||
|
Loading…
x
Reference in New Issue
Block a user