aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/KeyMap.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-04-28 09:37:22 +1000
committerNeil <nyamatongwe@gmail.com>2019-04-28 09:37:22 +1000
commita62e4cd6be774fe93835f5b2657142dbda8186f3 (patch)
tree5c2f0184e368c62946a37ef4208dcc90f417faaa /src/KeyMap.h
parentfa93bd28150e92b485ef6f094fda8a1ba5a5ed65 (diff)
downloadscintilla-mirror-a62e4cd6be774fe93835f5b2657142dbda8186f3.tar.gz
Backport: Declare reading methods as noexcept where reasonable.
Backport of changeset 7482:340b721ecdf4.
Diffstat (limited to 'src/KeyMap.h')
-rw-r--r--src/KeyMap.h4
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;
};
}