1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:57:45 +00:00

Everywhere: Run clang-format

This commit is contained in:
Idan Horowitz 2022-04-01 20:58:27 +03:00 committed by Linus Groh
parent 0376c127f6
commit 086969277e
1665 changed files with 8479 additions and 8479 deletions

View file

@ -41,7 +41,7 @@ void SnakeGame::reset()
update();
}
bool SnakeGame::is_available(const Coordinate& coord)
bool SnakeGame::is_available(Coordinate const& coord)
{
for (size_t i = 0; i < m_tail.size(); ++i) {
if (m_tail[i] == coord)
@ -171,7 +171,7 @@ void SnakeGame::keydown_event(GUI::KeyEvent& event)
}
}
Gfx::IntRect SnakeGame::cell_rect(const Coordinate& coord) const
Gfx::IntRect SnakeGame::cell_rect(Coordinate const& coord) const
{
auto game_rect = frame_inner_rect();
auto cell_size = Gfx::IntSize(game_rect.width() / m_columns, game_rect.height() / m_rows);
@ -224,7 +224,7 @@ void SnakeGame::queue_velocity(int v, int h)
m_velocity_queue.enqueue({ v, h });
}
const SnakeGame::Velocity& SnakeGame::last_velocity() const
SnakeGame::Velocity const& SnakeGame::last_velocity() const
{
if (!m_velocity_queue.is_empty())
return m_velocity_queue.last();