From aff303190de8985f17e516e81e0a13c4cb353d4a Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Fri, 10 Sep 2021 13:55:59 +0300 Subject: [PATCH] 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 --- src/keymap_manager.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()