mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +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
Notes:
sideshowbarker
2024-07-18 04:17:47 +09:00
Author: https://github.com/awesomekling
Commit: 470c99a2a6
10 changed files with 11 additions and 11 deletions
|
@ -15,7 +15,7 @@ public:
|
|||
explicit WeakContainer(Heap&);
|
||||
virtual ~WeakContainer();
|
||||
|
||||
virtual void remove_swept_cells(Badge<Heap>, Vector<Cell*>&) = 0;
|
||||
virtual void remove_swept_cells(Badge<Heap>, Span<Cell*>) = 0;
|
||||
|
||||
protected:
|
||||
void deregister();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue