mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 05:08:56 +00:00
LibJS: Convert Heap::allocate{,_without_realm}() to NonnullGCPtr
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Web::HTML {
|
||||
|
||||
JS::NonnullGCPtr<TextMetrics> TextMetrics::create(JS::Realm& realm)
|
||||
{
|
||||
return *realm.heap().allocate<TextMetrics>(realm, realm);
|
||||
return realm.heap().allocate<TextMetrics>(realm, realm);
|
||||
}
|
||||
|
||||
TextMetrics::TextMetrics(JS::Realm& realm)
|
||||
|
||||
Reference in New Issue
Block a user