From c96ef5f62a1369d66e8eba9bf8ed192e3cf8e716 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Tue, 17 Dec 2024 14:19:09 +0100 Subject: add noexcept qualifier to Script::get_key_state --- src/crepe/api/Script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/crepe/api/Script.cpp') diff --git a/src/crepe/api/Script.cpp b/src/crepe/api/Script.cpp index d4eaae9..583c04f 100644 --- a/src/crepe/api/Script.cpp +++ b/src/crepe/api/Script.cpp @@ -31,7 +31,7 @@ const keyboard_state_t & Script::get_keyboard_state() const { return sdl_context.get_keyboard_state(); } -bool Script::get_key_state(Keycode key) const { +bool Script::get_key_state(Keycode key) const noexcept { try { return this->get_keyboard_state().at(key); } catch (...) { -- cgit v1.2.3