1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:58:11 +00:00

LibJS: Make Cell::Visitor::visit_impl() take a Cell&

Passing a null cell pointer is not supported.
This commit is contained in:
Andreas Kling 2021-05-25 18:39:01 +02:00
parent 789d20ebb7
commit 0de954e86b
3 changed files with 7 additions and 7 deletions

View file

@ -41,12 +41,12 @@ public:
void visit(Cell* cell)
{
if (cell)
visit_impl(cell);
visit_impl(*cell);
}
void visit(Value);
protected:
virtual void visit_impl(Cell*) = 0;
virtual void visit_impl(Cell&) = 0;
virtual ~Visitor() = default;
};