From 93fe8cb305791ab0099831361ff1634a047dd13f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Wed, 12 Jul 2023 18:26:12 +0200 Subject: [PATCH] QRecursiveMutex: remove QDeadlineTimer::Forever leftover Amends 5f531ae2ac873c09deda096d292777422c4dee4d The overload taking QDeadlineTimer::ForeverConstant was required, prior to making it an enum class, because the conversion preferred 'int'. It was made an enum class for 6.6 and most overloads were removed, including the one for QMutex, but QRecursiveMutex was missed. Pick-to: 6.6 Change-Id: I4490dd3d7641c06346ea502f10c09915411319ad Reviewed-by: Marc Mutz Reviewed-by: Ahmad Samir Reviewed-by: Thiago Macieira --- src/corelib/thread/qmutex.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/corelib/thread/qmutex.h b/src/corelib/thread/qmutex.h index 496d0ea502..6081bfe4cc 100644 --- a/src/corelib/thread/qmutex.h +++ b/src/corelib/thread/qmutex.h @@ -200,12 +200,6 @@ public: { return tryLock(QDeadlineTimer(timePoint)); } - -#ifndef Q_QDOC - // because tryLock(QDeadlineTimer::Forever) is tryLock(0) - bool tryLock(QDeadlineTimer::ForeverConstant) QT_MUTEX_LOCK_NOEXCEPT - { lock(); return true; } -#endif }; #if QT_CORE_INLINE_IMPL_SINCE(6, 6)