From 04c8334c984bc71102b5065765a42a0b61932e63 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 7 Nov 2015 16:55:20 +0000 Subject: [PATCH] Avoid useless StringDataPtr copy --- src/buffer.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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