mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:37:34 +00:00
2048: East const all the things
This commit is contained in:
parent
b47d117bd2
commit
ec8fe6952f
4 changed files with 17 additions and 17 deletions
|
@ -14,12 +14,12 @@ class BoardView final : public GUI::Frame {
|
|||
|
||||
public:
|
||||
virtual ~BoardView() override;
|
||||
void set_board(const Game::Board* board);
|
||||
void set_board(Game::Board const* board);
|
||||
|
||||
Function<void(Game::Direction)> on_move;
|
||||
|
||||
private:
|
||||
explicit BoardView(const Game::Board*);
|
||||
explicit BoardView(Game::Board const*);
|
||||
|
||||
virtual void resize_event(GUI::ResizeEvent&) override;
|
||||
virtual void paint_event(GUI::PaintEvent&) override;
|
||||
|
@ -37,5 +37,5 @@ private:
|
|||
float m_padding { 0 };
|
||||
float m_cell_size { 0 };
|
||||
|
||||
const Game::Board* m_board { nullptr };
|
||||
Game::Board const* m_board { nullptr };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue