diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-03-01 12:03:08 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-03-01 12:03:08 +0000 |
| commit | 98972c18b7037ee6c4775b63ba38c9aa8bdb28fe (patch) | |
| tree | 48f5ec1949b576b92f2455fa47766e74657b8e75 /src/buffer.hh | |
| parent | 092dcd174f76bc31a43e03eb4caef4d99cae3aa6 (diff) | |
rename StringStorage to StringData
Diffstat (limited to 'src/buffer.hh')
| -rw-r--r-- | src/buffer.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/buffer.hh b/src/buffer.hh index 4c4a6ac5..4b8ba90e 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -59,7 +59,7 @@ private: ByteCoord m_coord; }; -using BufferLines = Vector<RefPtr<StringStorage>, MemoryDomain::BufferContent>; +using BufferLines = Vector<RefPtr<StringData>, MemoryDomain::BufferContent>; // A Buffer is a in-memory representation of a file // @@ -126,7 +126,7 @@ public: StringView operator[](LineCount line) const { return m_lines[line]; } - RefPtr<StringStorage> line_storage(LineCount line) const + RefPtr<StringData> line_storage(LineCount line) const { return m_lines.get_storage(line); } // returns an iterator at given coordinates. clamp line_and_column @@ -174,11 +174,11 @@ private: struct LineList : BufferLines { [[gnu::always_inline]] - RefPtr<StringStorage>& get_storage(LineCount line) + RefPtr<StringData>& get_storage(LineCount line) { return BufferLines::operator[]((int)line); } [[gnu::always_inline]] - const RefPtr<StringStorage>& get_storage(LineCount line) const + const RefPtr<StringData>& get_storage(LineCount line) const { return BufferLines::operator[]((int)line); } [[gnu::always_inline]] |
