From bd12a72546f862550d2e3dd3038086a166ebd987 Mon Sep 17 00:00:00 2001 From: Karol Baraniecki Date: Sat, 8 Apr 2023 00:34:16 +0200 Subject: [PATCH] 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. --- Userland/Games/BrickGame/BrickGame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {