From d3638e18d396f1935804908da717ca5cb97f2eda Mon Sep 17 00:00:00 2001 From: Tasuku Suzuki Date: Wed, 14 Apr 2021 23:24:44 +0900 Subject: [PATCH] Fix build without features.thread Change-Id: I233808be77dbf1930ebf65b6f23298414eab1da7 Reviewed-by: Volker Hilsheimer --- src/corelib/thread/qmutex.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/corelib/thread/qmutex.h b/src/corelib/thread/qmutex.h index 5f3b6d1b712..8265086eb74 100644 --- a/src/corelib/thread/qmutex.h +++ b/src/corelib/thread/qmutex.h @@ -285,7 +285,7 @@ class QMutex { public: - inline constexpr explicit QMutex() noexcept { } + constexpr QMutex() noexcept { } inline void lock() noexcept {} inline bool tryLock(int timeout = 0) noexcept { Q_UNUSED(timeout); return true; } @@ -305,9 +305,6 @@ public: Q_UNUSED(timePoint); return true; } - -private: - Q_DISABLE_COPY(QMutex) }; class QRecursiveMutex : public QMutex {};