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/input_actions.cpp | |
parent | dbab54ebf134b6ab2cf719d7c26a191fbffeed34 (diff) |
perf: add noexcept almost everywhere
Diffstat (limited to 'src/input_actions.cpp')
-rw-r--r-- | src/input_actions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_actions.cpp b/src/input_actions.cpp index 7a6976d..fa41bdd 100644 --- a/src/input_actions.cpp +++ b/src/input_actions.cpp @@ -7,7 +7,7 @@ namespace InputActions { -void exit_success() +void exit_success() noexcept { exit(EXIT_SUCCESS); } @@ -15,7 +15,7 @@ void exit_success() Callback move_cursor(const Vector2 &direction, const std::shared_ptr<ICursorController> &cursor_controller, const std::shared_ptr<IScene> &scene, - const std::shared_ptr<IWindow> &window) + const std::shared_ptr<IWindow> &window) noexcept { return [direction, cursor_controller, scene, window]() { |