From b828d4799a84beb1afbd889e5c4cb939a8b3df78 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 4 Apr 2022 11:15:35 +0200 Subject: style: add nodiscard to private statusline method --- src/game/statusline.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }; -- cgit v1.2.3-18-g5258