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/engine/user/input.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/engine/user/input.cpp') diff --git a/src/engine/user/input.cpp b/src/engine/user/input.cpp index 81fe2f6..87d8a68 100644 --- a/src/engine/user/input.cpp +++ b/src/engine/user/input.cpp @@ -60,8 +60,8 @@ void InputHandler::leave_raw_mode() noexcept _original_termios = nullptr; } -InputHandler::_SubscribersSizeType -InputHandler::_event_as_index(const Event &event) noexcept +auto +InputHandler::_event_as_index(const Event &event) noexcept -> InputHandler::_SubscribersSizeType { return static_cast<_SubscribersSizeType>(static_cast(event)); } -- cgit v1.2.3-18-g5258