1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 13:47:46 +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:
implicitfield 2022-11-28 21:52:58 +02:00 committed by Andreas Kling
parent 5f7099cff6
commit 39caaae90a
4 changed files with 11 additions and 14 deletions

View file

@ -23,7 +23,7 @@ public:
bool is_flooded() const;
void set_cell(size_t row, size_t column, Color color);
ErrorOr<Color> cell(size_t row, size_t column) const;
Color cell(size_t row, size_t column) const;
auto const& cells() const { return m_cells; }
void clear();