diff options
author | Neil <nyamatongwe@gmail.com> | 2019-04-28 09:37:22 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-04-28 09:37:22 +1000 |
commit | 6a542f10f35a7f6182335250ac6fb25dbd230cac (patch) | |
tree | 8579d35a88cfbb6c8644fc938176c22058e85561 /src/KeyMap.h | |
parent | 8be8298fd9fadccef7caa8cc4232f53a2f4b91fb (diff) | |
download | scintilla-mirror-6a542f10f35a7f6182335250ac6fb25dbd230cac.tar.gz |
Declare reading methods as noexcept where reasonable.
Diffstat (limited to 'src/KeyMap.h')
-rw-r--r-- | src/KeyMap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KeyMap.h b/src/KeyMap.h index 539b5e99a..245b6daaa 100644 --- a/src/KeyMap.h +++ b/src/KeyMap.h @@ -27,7 +27,7 @@ public: int modifiers; KeyModifiers(int key_, int modifiers_) noexcept : key(key_), modifiers(modifiers_) { } - bool operator<(const KeyModifiers &other) const { + bool operator<(const KeyModifiers &other) const noexcept { if (key == other.key) return modifiers < other.modifiers; else @@ -56,7 +56,7 @@ public: void Clear() noexcept; void AssignCmdKey(int key, int modifiers, unsigned int msg); unsigned int Find(int key, int modifiers) const; // 0 returned on failure - const std::map<KeyModifiers, unsigned int> &GetKeyMap() const; + const std::map<KeyModifiers, unsigned int> &GetKeyMap() const noexcept; }; } |