mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:07:45 +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
|
@ -17,10 +17,6 @@
|
|||
|
||||
namespace AK {
|
||||
|
||||
template<typename T, typename PtrTraits>
|
||||
class RefPtr;
|
||||
template<typename T>
|
||||
class NonnullRefPtr;
|
||||
template<typename T>
|
||||
class WeakPtr;
|
||||
|
||||
|
@ -64,14 +60,14 @@ public:
|
|||
template<typename U>
|
||||
NonnullOwnPtr& operator=(NonnullOwnPtr<U> const&) = delete;
|
||||
|
||||
template<typename U, typename PtrTraits = RefPtrTraits<U>>
|
||||
NonnullOwnPtr(RefPtr<U, PtrTraits> const&) = delete;
|
||||
template<typename U>
|
||||
NonnullOwnPtr(RefPtr<U> const&) = delete;
|
||||
template<typename U>
|
||||
NonnullOwnPtr(NonnullRefPtr<U> const&) = delete;
|
||||
template<typename U>
|
||||
NonnullOwnPtr(WeakPtr<U> const&) = delete;
|
||||
template<typename U, typename PtrTraits = RefPtrTraits<U>>
|
||||
NonnullOwnPtr& operator=(RefPtr<U, PtrTraits> const&) = delete;
|
||||
template<typename U>
|
||||
NonnullOwnPtr& operator=(RefPtr<U> const&) = delete;
|
||||
template<typename U>
|
||||
NonnullOwnPtr& operator=(NonnullRefPtr<U> const&) = delete;
|
||||
template<typename U>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue