diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-11-07 16:55:20 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-11-07 16:55:20 +0000 |
| commit | 04c8334c984bc71102b5065765a42a0b61932e63 (patch) | |
| tree | 00372e1b7fe13d67e9b76fdf1cea20228928f9f4 /src/buffer.hh | |
| parent | 329d5938a1fccc304b74abcfb287486405ed31b9 (diff) | |
Avoid useless StringDataPtr copy
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 90c1bb11..4353f1b7 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -126,7 +126,7 @@ public: StringView operator[](LineCount line) const { return m_lines[line]; } - StringDataPtr line_storage(LineCount line) const + const StringDataPtr& line_storage(LineCount line) const { return m_lines.get_storage(line); } // returns an iterator at given coordinates. clamp line_and_column |
