mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:37:35 +00: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:
parent
9e994da2ac
commit
75dca629df
5 changed files with 30 additions and 29 deletions
|
@ -21,7 +21,7 @@ namespace AK {
|
|||
|
||||
template<typename T>
|
||||
class OwnPtr;
|
||||
template<typename T, typename PtrTraits>
|
||||
template<typename T>
|
||||
class RefPtr;
|
||||
|
||||
template<typename T>
|
||||
|
@ -40,7 +40,7 @@ ALWAYS_INLINE void unref_if_not_null(T* ptr)
|
|||
|
||||
template<typename T>
|
||||
class [[nodiscard]] NonnullRefPtr {
|
||||
template<typename U, typename P>
|
||||
template<typename U>
|
||||
friend class RefPtr;
|
||||
template<typename U>
|
||||
friend class NonnullRefPtr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue