diff options
author | Karol Baraniecki <karol@baraniecki.eu> | 2023-04-08 00:34:16 +0200 |
---|---|---|
committer | Jelle Raaijmakers <jelle@gmta.nl> | 2023-04-09 00:44:45 +0200 |
commit | bd12a72546f862550d2e3dd3038086a166ebd987 (patch) | |
tree | 0ead17e555214b75b4b077ebdccca947f4bd2c61 /Userland/Games | |
parent | 962d39cc0583fe2ce015df08223bfbeb721a3901 (diff) | |
download | serenity-bd12a72546f862550d2e3dd3038086a166ebd987.zip |
BrickGame: Add a missing [[nodiscard]] for consistency
Every other function there returning a RenderRequest has one, so might
as well.
Don't add it to check_and_remove_full_rows(), because it's only used
inside other functions returning a RenderRequest, when it's already
clear a render will happen.
Diffstat (limited to 'Userland/Games')
-rw-r--r-- | Userland/Games/BrickGame/BrickGame.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Games/BrickGame/BrickGame.cpp b/Userland/Games/BrickGame/BrickGame.cpp index e0340473d6..9313ee93e7 100644 --- a/Userland/Games/BrickGame/BrickGame.cpp +++ b/Userland/Games/BrickGame/BrickGame.cpp @@ -303,7 +303,7 @@ public: return RenderRequest::RequestUpdate; } - RenderRequest move_down_fast() + [[nodiscard]] RenderRequest move_down_fast() { for (auto block = m_block;; block.move_down()) { if (block.has_collision(m_well)) { |