1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:48:12 +00:00

AK: Rename Bitmap::try_create() to ::create()

This is step 1 to removing `must_create()`.
This commit is contained in:
Sam Atkins 2022-12-20 16:34:13 +00:00 committed by Andreas Kling
parent c4e8509aac
commit bed5961fc2
5 changed files with 8 additions and 8 deletions

View file

@ -279,7 +279,7 @@ NonnullRefPtr<PhysicalPage> AnonymousVMObject::allocate_committed_page(Badge<Reg
ErrorOr<void> AnonymousVMObject::ensure_cow_map()
{
if (m_cow_map.is_null())
m_cow_map = TRY(Bitmap::try_create(page_count(), true));
m_cow_map = TRY(Bitmap::create(page_count(), true));
return {};
}