mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-28 18:40:29 +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);
|
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>
|
template<typename T>
|
||||||
void visit(GCPtr<T> cell)
|
void visit(GCPtr<T> cell)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue