mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibJS: Convert Heap::allocate{,_without_realm}() to NonnullGCPtr
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Web::DOM {
|
||||
|
||||
JS::NonnullGCPtr<HTMLCollection> HTMLCollection::create(ParentNode& root, Function<bool(Element const&)> filter)
|
||||
{
|
||||
return *root.heap().allocate<HTMLCollection>(root.realm(), root, move(filter));
|
||||
return root.heap().allocate<HTMLCollection>(root.realm(), root, move(filter));
|
||||
}
|
||||
|
||||
HTMLCollection::HTMLCollection(ParentNode& root, Function<bool(Element const&)> filter)
|
||||
|
||||
Reference in New Issue
Block a user