aboutsummaryrefslogtreecommitdiff
path: root/src/engine
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-29 18:05:16 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:58 +0200
commita8fbce594f87554b48da661c7939559be801da13 (patch)
tree39f11b9241505fb51dfd874135629f59a4b7189c /src/engine
parentc02774db1154987c04a6619cc8dadd9b966ca8f2 (diff)
fix: change input handler subscribers size type name
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/user/input.cpp6
-rw-r--r--src/engine/user/input.hpp4
2 files changed, 5 insertions, 5 deletions
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<uint8_t>(event));
+ return static_cast<SubscribersSizeType>(static_cast<uint8_t>(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<termios> _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;
};