1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

LibJS+LibWeb+Spreadsheet: Upcall visit_edges() via Base typedef

Let's use Base::visit_edges() when calling the base class, to prevent
accidentally skipping over anyone in the inheritance chain.
This commit is contained in:
Andreas Kling 2021-09-11 14:05:12 +02:00
parent 19ee5e01ad
commit d42d655853
16 changed files with 16 additions and 16 deletions

View file

@ -41,7 +41,7 @@ void WeakRef::remove_swept_cells(Badge<Heap>, Span<Cell*> cells)
void WeakRef::visit_edges(Visitor& visitor)
{
Object::visit_edges(visitor);
Base::visit_edges(visitor);
if (vm().execution_generation() == m_last_execution_generation)
visitor.visit(m_value);