summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2021-09-10 13:55:59 +0300
committerFrank LENORMAND <lenormf@gmail.com>2021-10-23 10:34:27 +0200
commitaff303190de8985f17e516e81e0a13c4cb353d4a (patch)
tree1cdce46ff0399a8a9b9b716dceac819df57ebdc4 /src
parentb3a1017a264cfea7e9ae1a374208e9b02efbda5a (diff)
src: Fix the API of `KeymapManager::add_user_mode()`
Cppcheck produces the following warning: ``` keymap_manager.hh:54:37: performance: Function parameter 'user_mode_name' should be passed by const reference. ``` Fixes #4340
Diffstat (limited to 'src')
-rw-r--r--src/keymap_manager.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keymap_manager.hh b/src/keymap_manager.hh
index 64e39dd7..7474ed95 100644
--- a/src/keymap_manager.hh
+++ b/src/keymap_manager.hh
@@ -51,7 +51,7 @@ public:
return m_parent->user_modes();
return m_user_modes;
}
- void add_user_mode(const String user_mode_name);
+ void add_user_mode(String user_mode_name);
private:
KeymapManager()