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.

Task-number: QTBUG-124909
Change-Id: I6a4fe460adf9bf903578601e500ccc697a3f7c96
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit e53df7a0218ff2d88668a33a0d9cf8bbe40e4933)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Marc Mutz 2024-04-30 12:22:53 +02:00 committed by Qt Cherry-pick Bot
parent 98ab914efc
commit e571a82015

View File

@ -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)