diff options
author | HampusM <hampus@hampusmat.com> | 2022-04-04 11:15:35 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:58 +0200 |
commit | b828d4799a84beb1afbd889e5c4cb939a8b3df78 (patch) | |
tree | 7c99f8b7137d0ab126b4e253a593a52655cd719f | |
parent | 9a38e00a44ad3171c881a2c8af44f7558a8a8c0b (diff) |
style: add nodiscard to private statusline method
-rw-r--r-- | src/game/statusline.hpp | 3 |
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; }; |