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

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.
This commit is contained in:
Karol Baraniecki 2023-04-08 00:34:16 +02:00 committed by Jelle Raaijmakers
parent 962d39cc05
commit bd12a72546

View file

@ -303,7 +303,7 @@ public:
return RenderRequest::RequestUpdate; return RenderRequest::RequestUpdate;
} }
RenderRequest move_down_fast() [[nodiscard]] RenderRequest move_down_fast()
{ {
for (auto block = m_block;; block.move_down()) { for (auto block = m_block;; block.move_down()) {
if (block.has_collision(m_well)) { if (block.has_collision(m_well)) {