diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-29 17:40:04 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:57 +0200 |
commit | a039c8ad36779903571419cb06cd052f8fc41512 (patch) | |
tree | 4fdced6941a048bdd4b032fab7012bca00a6028e /src/game/statusline.cpp | |
parent | acf72075ed32e5a679d49ffedc0c28d8ac2aea8b (diff) |
refactor: use trailing return types
Diffstat (limited to 'src/game/statusline.cpp')
-rw-r--r-- | src/game/statusline.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |