mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:58:12 +00:00
AK+Kernel: Rename try_make_weak_ptr to make_weak_ptr_if_nonnull
This matches the likes of the adopt_{own, ref}_if_nonnull family and also frees up the name to allow us to eventually add OOM-fallible versions of these functions.
This commit is contained in:
parent
bfe1bd9726
commit
d6ea6c39a7
6 changed files with 6 additions and 6 deletions
|
@ -404,7 +404,7 @@ static ErrorOr<LoadResult> load_elf_object(NonnullOwnPtr<Memory::AddressSpace> n
|
|||
load_base_address,
|
||||
elf_image.entry().offset(load_offset).get(),
|
||||
executable_size,
|
||||
AK::try_make_weak_ptr(master_tls_region),
|
||||
AK::make_weak_ptr_if_nonnull(master_tls_region),
|
||||
master_tls_size,
|
||||
master_tls_alignment,
|
||||
stack_region->make_weak_ptr()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue