diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-10-20 19:18:38 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-10-20 19:18:38 +0100 |
| commit | fc4142178f2619a9ba0cac62ce1081590a56ed79 (patch) | |
| tree | 609531bb234da34c62fb490fddbab2cd16bdda03 /src/buffer.cc | |
| parent | 69113e2711e59da42df5658ab18c7d1847d6db12 (diff) | |
Port more code to StringView instead of const String&
Diffstat (limited to 'src/buffer.cc')
| -rw-r--r-- | src/buffer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.cc b/src/buffer.cc index 2f80cc9c..4e5b1f8e 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -507,7 +507,7 @@ void Buffer::on_option_changed(const Option& option) option.name() + "=" + option.get_as_string()); } -void Buffer::run_hook_in_own_context(const String& hook_name, const String& param) +void Buffer::run_hook_in_own_context(const String& hook_name, StringView param) { InputHandler hook_handler({ *this, Selection{} }); m_hooks.run_hook(hook_name, param, hook_handler.context()); |
