mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 11:57:35 +00:00
LibJS: Tweak the WeakContainer::remove_swept_cells() API a little bit
Make this API take a Span<Cell*> instead of a Vector<Cell*>&. This is behavior neutral, but stops the API looking like it wants to do mutable things to the Vector.
This commit is contained in:
parent
9b5696fee7
commit
470c99a2a6
10 changed files with 11 additions and 11 deletions
|
@ -25,7 +25,7 @@ WeakRef::~WeakRef()
|
|||
{
|
||||
}
|
||||
|
||||
void WeakRef::remove_swept_cells(Badge<Heap>, Vector<Cell*>& cells)
|
||||
void WeakRef::remove_swept_cells(Badge<Heap>, Span<Cell*> cells)
|
||||
{
|
||||
VERIFY(m_value);
|
||||
for (auto* cell : cells) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue