diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-14 18:02:18 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:56 +0200 |
commit | dc6222611ad14a33f642396558ba84ecba9d6605 (patch) | |
tree | d759020233b66be62c5539209a03842d283b67a9 /src/engine/user/input.hpp | |
parent | dbab54ebf134b6ab2cf719d7c26a191fbffeed34 (diff) |
perf: add noexcept almost everywhere
Diffstat (limited to 'src/engine/user/input.hpp')
-rw-r--r-- | src/engine/user/input.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/engine/user/input.hpp b/src/engine/user/input.hpp index f48ab86..3dd7fa9 100644 --- a/src/engine/user/input.hpp +++ b/src/engine/user/input.hpp @@ -12,17 +12,17 @@ class InputHandler : public IInputHandler, public AutoWirable<IInputHandler, InputHandler> { public: - InputHandler() = default; + InputHandler() noexcept = default; - void listen() const override; + void listen() const noexcept override; - void attach(const char &event, Callback callback) override; + void attach(const char &event, Callback callback) noexcept override; - void notify(const char &event) const override; + void notify(const char &event) const noexcept override; - void enter_raw_mode() override; + void enter_raw_mode() noexcept override; - void leave_raw_mode() override; + void leave_raw_mode() noexcept override; private: std::unordered_map<char, std::vector<Callback>> _key_observers; |