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
This commit is contained in:
Frank LENORMAND 2021-09-10 13:55:59 +03:00
parent b3a1017a26
commit aff303190d

View File

@ -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()