From a8fbce594f87554b48da661c7939559be801da13 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 29 Mar 2022 18:05:16 +0200 Subject: fix: change input handler subscribers size type name --- src/engine/user/input.cpp | 6 +++--- src/engine/user/input.hpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/engine') diff --git a/src/engine/user/input.cpp b/src/engine/user/input.cpp index 87d8a68..1d6bc09 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; } -auto -InputHandler::_event_as_index(const Event &event) noexcept -> InputHandler::_SubscribersSizeType +auto InputHandler::_event_as_index(const Event &event) noexcept + -> InputHandler::SubscribersSizeType { - return static_cast<_SubscribersSizeType>(static_cast(event)); + return static_cast(static_cast(event)); } diff --git a/src/engine/user/input.hpp b/src/engine/user/input.hpp index 0a437ef..66b58c6 100644 --- a/src/engine/user/input.hpp +++ b/src/engine/user/input.hpp @@ -34,7 +34,7 @@ private: std::shared_ptr _original_termios = nullptr; - using _SubscribersSizeType = decltype(_subscribers)::size_type; + using SubscribersSizeType = decltype(_subscribers)::size_type; - static auto _event_as_index(const Event &event) noexcept -> _SubscribersSizeType; + static auto _event_as_index(const Event &event) noexcept -> SubscribersSizeType; }; -- cgit v1.2.3-18-g5258