diff options
author | Neil <nyamatongwe@gmail.com> | 2021-10-12 11:59:02 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-10-12 11:59:02 +1100 |
commit | 04354fa2e11008ab5be66756712a8671409198b2 (patch) | |
tree | 5a76af549a69dcc7448a108c85fe85cae2b666ba | |
parent | bee9f039a67915f609803ea1351432248b888df1 (diff) | |
download | scintilla-mirror-04354fa2e11008ab5be66756712a8671409198b2.tar.gz |
Feature [feature-requests:#1416] Use noexcept to mark impossibility of
exceptions in static intialisation.
-rw-r--r-- | src/KeyMap.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<KeyModifiers, Message> &KeyMap::GetKeyMap() const noexcept { namespace { -constexpr Keys Key(char ch) { +constexpr Keys Key(char ch) noexcept { return static_cast<Keys>(ch); } |