diff options
author | nyamatongwe <devnull@localhost> | 2013-05-24 00:04:54 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-05-24 00:04:54 +1000 |
commit | 44da106995e3b3ca4068f584c16f59d8fced4e69 (patch) | |
tree | 72512a72ac08ef47a2f40d9b30b0f208a245fda0 /src/KeyMap.cxx | |
parent | 2345e207b44f01e09d8dba69a37b9a67eeefa884 (diff) | |
download | scintilla-mirror-44da106995e3b3ca4068f584c16f59d8fced4e69.tar.gz |
Made methods const where they can be and are logically const as well.
Diffstat (limited to 'src/KeyMap.cxx')
-rw-r--r-- | src/KeyMap.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/KeyMap.cxx b/src/KeyMap.cxx index ab8be2f9e..740776104 100644 --- a/src/KeyMap.cxx +++ b/src/KeyMap.cxx @@ -49,7 +49,7 @@ void KeyMap::AssignCmdKey(int key, int modifiers, unsigned int msg) { kmap.push_back(ktc); } -unsigned int KeyMap::Find(int key, int modifiers) { +unsigned int KeyMap::Find(int key, int modifiers) const { for (size_t i = 0; i < kmap.size(); i++) { if ((key == kmap[i].key) && (modifiers == kmap[i].modifiers)) { return kmap[i].msg; |