summaryrefslogtreecommitdiff
path: root/AK/Weakable.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-05-07 12:50:54 +0200
committerAndreas Kling <kling@serenityos.org>2022-06-15 17:15:04 +0200
commit75dca629df6bbcb051cf1daf4606cf53654b2494 (patch)
tree47a673de7076ded5224853892f3900015f70531c /AK/Weakable.h
parent9e994da2acdec9807a82b3e3356876a2e1dd59b0 (diff)
downloadserenity-75dca629df6bbcb051cf1daf4606cf53654b2494.zip
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.
Diffstat (limited to 'AK/Weakable.h')
-rw-r--r--AK/Weakable.h6
1 files changed, 3 insertions, 3 deletions
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<WeakLink> {
friend class WeakPtr;
public:
- template<typename T, typename PtrTraits = RefPtrTraits<T>>
- RefPtr<T, PtrTraits> strong_ref() const
+ template<typename T>
+ RefPtr<T> strong_ref() const
requires(IsBaseOf<RefCountedBase, T>)
{
- RefPtr<T, PtrTraits> ref;
+ RefPtr<T> ref;
{
if (!(m_consumers.fetch_add(1u << 1, AK::MemoryOrder::memory_order_acquire) & 1u)) {