summaryrefslogtreecommitdiff
path: root/src/buffer_utils.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-10-20 19:18:38 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-10-20 19:18:38 +0100
commitfc4142178f2619a9ba0cac62ce1081590a56ed79 (patch)
tree609531bb234da34c62fb490fddbab2cd16bdda03 /src/buffer_utils.cc
parent69113e2711e59da42df5658ab18c7d1847d6db12 (diff)
Port more code to StringView instead of const String&
Diffstat (limited to 'src/buffer_utils.cc')
-rw-r--r--src/buffer_utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer_utils.cc b/src/buffer_utils.cc
index 1d7e7d25..c3dd755c 100644
--- a/src/buffer_utils.cc
+++ b/src/buffer_utils.cc
@@ -133,7 +133,7 @@ Buffer* create_fifo_buffer(String name, int fd, bool scroll)
});
buffer->hooks().add_hook("BufClose", "",
- [buffer, watcher](const String&, const Context&) {
+ [buffer, watcher](StringView, const Context&) {
// Check if fifo is still alive, else watcher is already dead
if (buffer->flags() & Buffer::Flags::Fifo)
{