1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:27:35 +00:00

AK: Decorate AK::NonnullOwnPtr::leak_ptr() with [[nodiscard]]

This commit is contained in:
Brian Gianforcaro 2020-08-05 06:51:36 -07:00 committed by Andreas Kling
parent fa625a2690
commit f34fcdedef

View file

@ -111,7 +111,7 @@ public:
return *this;
}
T* leak_ptr()
[[nodiscard]] T* leak_ptr()
{
return exchange(m_ptr, nullptr);
}