1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

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.
This commit is contained in:
Andreas Kling 2022-05-07 12:50:54 +02:00
parent 9e994da2ac
commit 75dca629df
Notes: sideshowbarker 2024-07-17 10:14:15 +09:00
5 changed files with 30 additions and 29 deletions

View file

@ -115,11 +115,16 @@ class NonnullOwnPtrVector;
template<typename T>
class Optional;
#ifdef KERNEL
template<typename T>
struct RefPtrTraits;
template<typename T, typename PtrTraits = RefPtrTraits<T>>
class RefPtr;
#else
template<typename T>
class RefPtr;
#endif
template<typename T>
class OwnPtr;