summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-10-01 00:20:12 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-10-01 00:20:12 +0100
commitd55d041c6aa9941cc74853e4b2bf6620773c84c1 (patch)
tree702ed4e245190845036d7523523fd0729ceeba81 /src/buffer.hh
parentd9e462851c4b18b80b478956ed20fb0be8a1d640 (diff)
Add support for interned strings
Use interned strings for Modification contents and word database. Interned strings are guaranteed not to move in memory and are reference counted.
Diffstat (limited to 'src/buffer.hh')
-rw-r--r--src/buffer.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.hh b/src/buffer.hh
index 17e0e4c7..e24bc786 100644
--- a/src/buffer.hh
+++ b/src/buffer.hh
@@ -190,7 +190,7 @@ private:
};
LineList m_lines;
- ByteCoord do_insert(ByteCoord pos, const String& content);
+ ByteCoord do_insert(ByteCoord pos, StringView content);
ByteCoord do_erase(ByteCoord begin, ByteCoord end);
String m_name;