mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:47:45 +00:00
Flood: Return a Color from Board::cell
This allows us to get rid of many needless release_value() calls.
This commit is contained in:
parent
5f7099cff6
commit
39caaae90a
4 changed files with 11 additions and 14 deletions
|
@ -62,7 +62,7 @@ void BoardWidget::paint_event(GUI::PaintEvent& event)
|
|||
int cell_y = row * cell_size + board_offset.height();
|
||||
|
||||
Gfx::Rect cell_rect(cell_x, cell_y, cell_size, cell_size);
|
||||
Color fill_color = m_board->cell(row, column).release_value();
|
||||
Color fill_color = m_board->cell(row, column);
|
||||
painter.fill_rect(cell_rect, fill_color);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue