diff options
author | Marc Mutz <marc.mutz@qt.io> | 2024-04-30 12:22:53 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2024-05-03 01:05:07 +0200 |
commit | e53df7a0218ff2d88668a33a0d9cf8bbe40e4933 (patch) | |
tree | 0e06a7826ab3ca9e98896f7a5fd09c16e9ce4520 /src/corelib/thread | |
parent | 78b0d507ce8728c6287196f78b7c428d9bbdcda3 (diff) |
QtPrivate::Continuation: add missing Q_DISABLE_COPY(_MOVE)
This polymorphic class is not designed for copying or moving, so
statically assert that it isn't moved or copied.
Amends dfaca09e85a49d2983bb89893bfbe1ba4c19eab4.
Pick-to: 6.7
Task-number: QTBUG-124909
Change-Id: I6a4fe460adf9bf903578601e500ccc697a3f7c96
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/thread')
-rw-r--r-- | src/corelib/thread/qfuture_impl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/thread/qfuture_impl.h b/src/corelib/thread/qfuture_impl.h index 62de5c0660..351093adc7 100644 --- a/src/corelib/thread/qfuture_impl.h +++ b/src/corelib/thread/qfuture_impl.h @@ -287,6 +287,7 @@ using IsForwardIterable = template<typename Function, typename ResultType, typename ParentResultType> class Continuation { + Q_DISABLE_COPY_MOVE(Continuation) public: template<typename F = Function> Continuation(F &&func, const QFuture<ParentResultType> &f, QPromise<ResultType> &&p) |