From 04354fa2e11008ab5be66756712a8671409198b2 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 12 Oct 2021 11:59:02 +1100 Subject: Feature [feature-requests:#1416] Use noexcept to mark impossibility of exceptions in static intialisation. --- src/KeyMap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/KeyMap.cxx b/src/KeyMap.cxx index 38a8911c9..6e112479d 100644 --- a/src/KeyMap.cxx +++ b/src/KeyMap.cxx @@ -67,7 +67,7 @@ const std::map &KeyMap::GetKeyMap() const noexcept { namespace { -constexpr Keys Key(char ch) { +constexpr Keys Key(char ch) noexcept { return static_cast(ch); } -- cgit v1.2.3