summaryrefslogtreecommitdiff
path: root/src/buffer_utils.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-04-27 16:39:51 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-04-27 16:46:57 +0100
commit5bff742e0a40fd414bc7f6a10c736cf59d346b14 (patch)
treeeae9da4a0ae6a36c033546caed1b1ddf196268bc /src/buffer_utils.cc
parent720c54c759c90288da185be2dbfcef8b2ecb1e9b (diff)
Replace some String temporaries with StringViews
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 c02a283f..76884cda 100644
--- a/src/buffer_utils.cc
+++ b/src/buffer_utils.cc
@@ -138,7 +138,7 @@ Buffer* create_fifo_buffer(String name, int fd, bool scroll)
if (prevent_scrolling)
++pos;
- buffer->insert(pos, String(data, data+count));
+ buffer->insert(pos, StringView(data, data+count));
if (count > 0 and prevent_scrolling)
{