mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:47:44 +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:
parent
bed5961fc2
commit
29733e65f8
6 changed files with 25 additions and 30 deletions
|
@ -655,7 +655,7 @@ void Bitmap::flood_visit_from_point(Gfx::IntPoint start_point, int threshold,
|
|||
|
||||
points_to_visit.enqueue(start_point);
|
||||
pixel_reached(start_point);
|
||||
auto flood_mask = AK::Bitmap::must_create(width() * height(), false);
|
||||
auto flood_mask = AK::Bitmap::create(width() * height(), false).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
flood_mask.set(width() * start_point.y() + start_point.x(), true);
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ namespace JS::Bytecode::Passes {
|
|||
|
||||
static NonnullOwnPtr<BasicBlock> eliminate_loads(BasicBlock const& block, size_t number_of_registers)
|
||||
{
|
||||
auto array_ranges = Bitmap::must_create(number_of_registers, false);
|
||||
auto array_ranges = Bitmap::create(number_of_registers, false).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
for (auto it = InstructionStreamIterator(block.instruction_stream()); !it.at_end(); ++it) {
|
||||
if ((*it).type() == Instruction::Type::NewArray) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue