diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-04-10 21:33:20 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-04-10 21:33:20 +0100 |
| commit | c1c40a4b56ef62a960a193cce2324cd966a6b4f7 (patch) | |
| tree | 1556777f05c54e5b5d949e1fc76634bbd68da129 /src/command_manager.hh | |
| parent | a4b82131e5e8af85599e5d86b52db6f128a7f5f1 (diff) | |
Remove some now unneeded uses of const String& params
HashMap supports finding String from StringView.
Diffstat (limited to 'src/command_manager.hh')
| -rw-r--r-- | src/command_manager.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command_manager.hh b/src/command_manager.hh index c0442255..0bf0bfdb 100644 --- a/src/command_manager.hh +++ b/src/command_manager.hh @@ -93,7 +93,7 @@ public: Optional<CommandInfo> command_info(const Context& context, StringView command_line) const; - bool command_defined(const String& command_name) const; + bool command_defined(StringView command_name) const; void register_command(String command_name, Command command, String docstring, @@ -127,7 +127,7 @@ private: int m_command_depth = 0; CommandMap::const_iterator find_command(const Context& context, - const String& name) const; + StringView name) const; }; String expand(StringView str, const Context& context, |
