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:
parent
5f7099cff6
commit
39caaae90a
4 changed files with 11 additions and 14 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue