Avoid useless StringDataPtr copy

This commit is contained in:
Maxime Coste 2015-11-07 16:55:20 +00:00
parent 329d5938a1
commit 04c8334c98

View File

@ -126,7 +126,7 @@ public:
StringView operator[](LineCount line) const StringView operator[](LineCount line) const
{ return m_lines[line]; } { return m_lines[line]; }
StringDataPtr line_storage(LineCount line) const const StringDataPtr& line_storage(LineCount line) const
{ return m_lines.get_storage(line); } { return m_lines.get_storage(line); }
// returns an iterator at given coordinates. clamp line_and_column // returns an iterator at given coordinates. clamp line_and_column