diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-10-07 09:15:32 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-10-07 09:16:19 +0100 |
| commit | b097bbbf52a8e6c7b2465b883f6b131831e5b808 (patch) | |
| tree | 1b3f60baf7e2ca3161d8f831fc0b289d5cb671d3 /src/buffer.hh | |
| parent | f3fb299359450230ac1da1238ab8cd590d0976f7 (diff) | |
WordDB: Use interned strings pointing directly into the buffer line data
Diffstat (limited to 'src/buffer.hh')
| -rw-r--r-- | src/buffer.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.hh b/src/buffer.hh index 01504170..303123d3 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -126,7 +126,7 @@ public: BufferIterator end() const; LineCount line_count() const; - const StringView& operator[](LineCount line) const + const InternedString& operator[](LineCount line) const { return m_lines[line]; } // returns an iterator at given coordinates. clamp line_and_column |
