summaryrefslogtreecommitdiff
path: root/src/buffer_utils.cc
diff options
context:
space:
mode:
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 c768a9eb..88f7d4f8 100644
--- a/src/buffer_utils.cc
+++ b/src/buffer_utils.cc
@@ -66,7 +66,7 @@ Buffer* create_buffer_from_data(StringView data, StringView name,
while (line_end < data.end() and *line_end != '\r' and *line_end != '\n')
++line_end;
- lines.emplace_back(StringStorage::create({pos, line_end}, '\n'));
+ lines.emplace_back(StringData::create({pos, line_end}, '\n'));
if (line_end+1 != data.end() and *line_end == '\r' and *(line_end+1) == '\n')
{