mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 14:28:49 +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
Notes:
sideshowbarker
2024-07-19 05:10:12 +09:00
Author: https://github.com/bugaevc
Commit: 6111cfda73
Pull-request: https://github.com/SerenityOS/serenity/pull/2675
Reviewed-by: https://github.com/awesomekling
4 changed files with 5 additions and 5 deletions
|
@ -119,7 +119,7 @@ KResult VFS::unmount(Inode& guest_inode)
|
|||
return result;
|
||||
}
|
||||
dbg() << "VFS: found fs " << mount.guest_fs().fsid() << " at mount index " << i << "! Unmounting...";
|
||||
m_mounts.unstable_remove(i);
|
||||
m_mounts.unstable_take(i);
|
||||
return KSuccess;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue