mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 18:15:06 +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
|
@ -237,7 +237,7 @@ bool Process::deallocate_region(Region& region)
|
|||
m_region_lookup_cache.region = nullptr;
|
||||
for (size_t i = 0; i < m_regions.size(); ++i) {
|
||||
if (&m_regions[i] == ®ion) {
|
||||
m_regions.unstable_remove(i);
|
||||
m_regions.unstable_take(i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue