From ab6bccdd8121c773883794fe86d0a157d1f9d4d6 Mon Sep 17 00:00:00 2001 From: Tasuku Suzuki Date: Wed, 30 Jun 2021 22:38:41 +0900 Subject: [PATCH] Put Q_DISABLE_COPY(QMutex) back when features.thread is unavailable Revert a part of d3638e18d396f1935804908da717ca5cb97f2eda because the change was not needed Task-number: QTBUG-94407 Pick-to: 6.2 Change-Id: I7cf0969d6ecc4078d38b4241ffe7d24273a6d412 Reviewed-by: Edward Welbourne --- src/corelib/thread/qmutex.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/corelib/thread/qmutex.h b/src/corelib/thread/qmutex.h index 8265086eb74..3e861ca0cb2 100644 --- a/src/corelib/thread/qmutex.h +++ b/src/corelib/thread/qmutex.h @@ -305,6 +305,9 @@ public: Q_UNUSED(timePoint); return true; } + +private: + Q_DISABLE_COPY(QMutex) }; class QRecursiveMutex : public QMutex {};