QCoreApplication: fix a clazy-rule-of-three

The local RAII class was missing the Q_DISABLE_COPY(_MOVE). Add it.

Amends f9035587b9.

Pick-to: 6.7
Change-Id: I19dfa18c301698e45353435b9b77e62332e54c31
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
(cherry picked from commit 199a4535e7e665c656c8e35e3e3fdc5da7e5bd51)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
bb10
Marc Mutz 2024-04-23 14:47:44 +02:00 committed by Qt Cherry-pick Bot
parent 707388775e
commit dbb4a80a29
1 changed files with 2 additions and 0 deletions

View File

@ -1825,6 +1825,8 @@ void QCoreApplicationPrivate::sendPostedEvents(QObject *receiver, int event_type
// Exception-safe cleaning up without the need for a try/catch block
struct CleanUp {
Q_DISABLE_COPY_MOVE(CleanUp)
QObject *receiver;
int event_type;
QThreadData *data;