From 75dca629df6bbcb051cf1daf4606cf53654b2494 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 7 May 2022 12:50:54 +0200 Subject: AK+Kernel: Remove RefPtrTraits template param in userspace code Only the kernel actually uses RefPtrTraits, so let's not burden userspace builds with the complexity. --- AK/Weakable.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'AK/Weakable.h') diff --git a/AK/Weakable.h b/AK/Weakable.h index ee784aa090..af9469ca4e 100644 --- a/AK/Weakable.h +++ b/AK/Weakable.h @@ -30,11 +30,11 @@ class WeakLink : public RefCounted { friend class WeakPtr; public: - template> - RefPtr strong_ref() const + template + RefPtr strong_ref() const requires(IsBaseOf) { - RefPtr ref; + RefPtr ref; { if (!(m_consumers.fetch_add(1u << 1, AK::MemoryOrder::memory_order_acquire) & 1u)) { -- cgit v1.2.3