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:
parent
9e994da2ac
commit
75dca629df
Notes:
sideshowbarker
2024-07-17 10:14:15 +09:00
Author: https://github.com/awesomekling
Commit: 75dca629df
5 changed files with 30 additions and 29 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue