From 199a4535e7e665c656c8e35e3e3fdc5da7e5bd51 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 23 Apr 2024 14:47:44 +0200 Subject: [PATCH] QCoreApplication: fix a clazy-rule-of-three The local RAII class was missing the Q_DISABLE_COPY(_MOVE). Add it. Amends f9035587b98ac5dc9491e642b8ec84470ec03f0e. Pick-to: 6.8 6.7 Change-Id: I19dfa18c301698e45353435b9b77e62332e54c31 Reviewed-by: Giuseppe D'Angelo --- src/corelib/kernel/qcoreapplication.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index a494369c5d5..4262c14405e 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -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;