From 6a542f10f35a7f6182335250ac6fb25dbd230cac Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 28 Apr 2019 09:37:22 +1000 Subject: Declare reading methods as noexcept where reasonable. --- src/KeyMap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/KeyMap.h') 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 &GetKeyMap() const; + const std::map &GetKeyMap() const noexcept; }; } -- cgit v1.2.3