diff options
| author | Frank LENORMAND <lenormf@gmail.com> | 2021-09-10 13:55:59 +0300 |
|---|---|---|
| committer | Frank LENORMAND <lenormf@gmail.com> | 2021-10-23 10:34:27 +0200 |
| commit | aff303190de8985f17e516e81e0a13c4cb353d4a (patch) | |
| tree | 1cdce46ff0399a8a9b9b716dceac819df57ebdc4 /src/keymap_manager.hh | |
| parent | b3a1017a264cfea7e9ae1a374208e9b02efbda5a (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/keymap_manager.hh')
| -rw-r--r-- | src/keymap_manager.hh | 2 |
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() |
