Avoid useless StringDataPtr copy
This commit is contained in:
parent
329d5938a1
commit
04c8334c98
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user