aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-04-28 09:35:43 +1000
committerNeil <nyamatongwe@gmail.com>2019-04-28 09:35:43 +1000
commit8be8298fd9fadccef7caa8cc4232f53a2f4b91fb (patch)
treec0c93aa18badda60b99a34068d660a2c745ae678 /src
parent313dbb58ac65fe8bea529f3990c4ba688500d3b4 (diff)
downloadscintilla-mirror-8be8298fd9fadccef7caa8cc4232f53a2f4b91fb.tar.gz
Declare KeyMap::Clear() noexcept as called in destructor.
Diffstat (limited to 'src')
-rw-r--r--src/KeyMap.cxx2
-rw-r--r--src/KeyMap.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/KeyMap.cxx b/src/KeyMap.cxx
index d7f87a5d9..1f9a157fb 100644
--- a/src/KeyMap.cxx
+++ b/src/KeyMap.cxx
@@ -33,7 +33,7 @@ KeyMap::~KeyMap() {
Clear();
}
-void KeyMap::Clear() {
+void KeyMap::Clear() noexcept {
kmap.clear();
}
diff --git a/src/KeyMap.h b/src/KeyMap.h
index 6f30abf00..539b5e99a 100644
--- a/src/KeyMap.h
+++ b/src/KeyMap.h
@@ -53,7 +53,7 @@ class KeyMap {
public:
KeyMap();
~KeyMap();
- void Clear();
+ 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;