mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +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: c0bcebeb08
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…
Add table
Add a link
Reference in a new issue