aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-04-04 11:15:35 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:58 +0200
commitb828d4799a84beb1afbd889e5c4cb939a8b3df78 (patch)
tree7c99f8b7137d0ab126b4e253a593a52655cd719f /src
parent9a38e00a44ad3171c881a2c8af44f7558a8a8c0b (diff)
style: add nodiscard to private statusline method
Diffstat (limited to 'src')
-rw-r--r--src/game/statusline.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/statusline.hpp b/src/game/statusline.hpp
index a14ab20..9e85008 100644
--- a/src/game/statusline.hpp
+++ b/src/game/statusline.hpp
@@ -35,7 +35,8 @@ private:
void _move_back(Vector2 previous_position) noexcept;
- auto _get_section_start_x(StatusLineSection section) const noexcept -> int32_t;
+ [[nodiscard]] auto _get_section_start_x(StatusLineSection section) const noexcept
+ -> int32_t;
void _clear_section(StatusLineSection section) noexcept;
};