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

AK: Don't allow constructing an OwnPtr from a const NonnullOwnPtr&

OwnPtr's must move around, they can't be copy constructed.
This commit is contained in:
Andreas Kling 2019-08-01 15:46:18 +02:00
parent 79ce75d862
commit eeff0cd570
Notes: sideshowbarker 2024-07-19 12:57:24 +09:00

View file

@ -46,6 +46,10 @@ public:
template<typename U>
OwnPtr& operator=(const OwnPtr<U>&) = delete;
template<typename U>
OwnPtr(const NonnullOwnPtr<U>&) = delete;
template<typename U>
OwnPtr& operator=(const NonnullOwnPtr<U>&) = delete;
template<typename U>
OwnPtr(const RefPtr<U>&) = delete;
template<typename U>