diff options
author | Dmitrii Ubskii <ubskydm@gmail.com> | 2021-06-11 15:39:23 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-11 22:45:14 +0200 |
commit | ec8fe6952f5a1d9afd299b2ab1a2bd1002a03f84 (patch) | |
tree | 3a686feb6f392310e5cc0491a44e47a775dc838f /Userland/Games/2048/BoardView.h | |
parent | b47d117bd25ef2d93b4af2bcd94ecad912c7d8e4 (diff) | |
download | serenity-ec8fe6952f5a1d9afd299b2ab1a2bd1002a03f84.zip |
2048: East const all the things
Diffstat (limited to 'Userland/Games/2048/BoardView.h')
-rw-r--r-- | Userland/Games/2048/BoardView.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Games/2048/BoardView.h b/Userland/Games/2048/BoardView.h index 51c0430ee5..20db43b15b 100644 --- a/Userland/Games/2048/BoardView.h +++ b/Userland/Games/2048/BoardView.h @@ -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 }; }; |