mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
AK: Decorate AK::NonnullOwnPtr::leak_ptr() with [[nodiscard]]
This commit is contained in:
parent
fa625a2690
commit
f34fcdedef
Notes:
sideshowbarker
2024-07-19 04:16:37 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/f34fcdedef9 Pull-request: https://github.com/SerenityOS/serenity/pull/3012
@ -111,7 +111,7 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
T* leak_ptr()
|
[[nodiscard]] T* leak_ptr()
|
||||||
{
|
{
|
||||||
return exchange(m_ptr, nullptr);
|
return exchange(m_ptr, nullptr);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user