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
commitfa93bd28150e92b485ef6f094fda8a1ba5a5ed65 (patch)
treed208ee5eedfebc2570ede82b38d9058ebb37c285 /src
parentd4209eb2e6569401acb4f4bd02e3b00c92159511 (diff)
downloadscintilla-mirror-fa93bd28150e92b485ef6f094fda8a1ba5a5ed65.tar.gz
Backport: Declare KeyMap::Clear() noexcept as called in destructor.
Backport of changeset 7481:392990fdc714.
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 42982b4f7..7171e3318 100644
--- a/src/KeyMap.cxx
+++ b/src/KeyMap.cxx
@@ -32,7 +32,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;