From a039c8ad36779903571419cb06cd052f8fc41512 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 29 Mar 2022 17:40:04 +0200 Subject: refactor: use trailing return types --- src/game/statusline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/statusline.cpp') diff --git a/src/game/statusline.cpp b/src/game/statusline.cpp index 221258c..6becb38 100644 --- a/src/game/statusline.cpp +++ b/src/game/statusline.cpp @@ -51,7 +51,7 @@ void StatusLine::set_status(StatusLineSection section, _move_back(previous_position); } -Vector2 StatusLine::_move_to_statusline(int32_t x) noexcept +auto StatusLine::_move_to_statusline(int32_t x) noexcept -> Vector2 { const auto previous_position = _cursor_controller->where(); @@ -72,7 +72,7 @@ void StatusLine::_move_back(Vector2 previous_position) noexcept _cursor_controller->show(); } -int32_t StatusLine::_get_section_start_x(StatusLineSection section) const noexcept +auto StatusLine::_get_section_start_x(StatusLineSection section) const noexcept -> int32_t { int32_t section_start = 0; -- cgit v1.2.3-18-g5258