1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:17:36 +00:00

AK+Everywhere: Replace all Bitmap::must_create() uses with ::create()

Well, *someone* has to add some more FIXMEs to keep FIXME Roulette
going. :^)
This commit is contained in:
Sam Atkins 2022-12-20 16:45:07 +00:00 committed by Andreas Kling
parent bed5961fc2
commit 29733e65f8
6 changed files with 25 additions and 30 deletions

View file

@ -31,7 +31,7 @@ NonnullLockRefPtr<VirtIOGraphicsAdapter> VirtIOGraphicsAdapter::initialize(PCI::
"VirtGPU Scratch Space"sv,
Memory::Region::Access::ReadWrite));
auto active_context_ids = Bitmap::must_create(VREND_MAX_CTX, false);
auto active_context_ids = MUST(Bitmap::create(VREND_MAX_CTX, false));
auto adapter = adopt_lock_ref(*new (nothrow) VirtIOGraphicsAdapter(device_identifier, move(active_context_ids), move(scratch_space_region)));
adapter->initialize();
MUST(adapter->initialize_adapter());