mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:57:34 +00:00
AK: Decorate AK::NonnullOwnPtr::leak_ptr() with [[nodiscard]]
This commit is contained in:
parent
fa625a2690
commit
f34fcdedef
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue