mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +00:00
AK: Make Vector::unstable_remove() return the removed value
...and rename it to unstable_take(), to align with other take...() methods.
This commit is contained in:
parent
63f458ffc1
commit
6111cfda73
4 changed files with 5 additions and 5 deletions
|
@ -156,7 +156,7 @@ void SharedBuffer::disown(pid_t pid)
|
|||
dbg() << "Disowning shared buffer " << m_shbuf_id << " of size " << size() << " by PID " << pid;
|
||||
#endif
|
||||
m_total_refs -= ref.count;
|
||||
m_refs.unstable_remove(i);
|
||||
m_refs.unstable_take(i);
|
||||
#ifdef SHARED_BUFFER_DEBUG
|
||||
dbg() << "Disowned shared buffer " << m_shbuf_id << " of size " << size() << " by PID " << pid;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue