mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
LibJS: Add const versions of Cell::visit
This commit is contained in:
parent
1bcc6764ae
commit
c0bcebeb08
Notes:
github-actions[bot]
2024-11-14 14:39:58 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/c0bcebeb08b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2334
1 changed files with 10 additions and 0 deletions
|
@ -70,6 +70,16 @@ public:
|
|||
visit_impl(cell);
|
||||
}
|
||||
|
||||
void visit(Cell const* cell)
|
||||
{
|
||||
visit(const_cast<Cell*>(cell));
|
||||
}
|
||||
|
||||
void visit(Cell const& cell)
|
||||
{
|
||||
visit(const_cast<Cell&>(cell));
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void visit(GCPtr<T> cell)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue