From eedd37c09acace58ceadacf8ecf9e883a2fd5a4a Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 26 Jul 2013 01:17:12 +0200 Subject: memoryview: always pass by value --- src/editor.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/editor.hh') diff --git a/src/editor.hh b/src/editor.hh index bf70af70..0104d43d 100644 --- a/src/editor.hh +++ b/src/editor.hh @@ -50,7 +50,7 @@ public: void insert(const String& string, InsertMode mode = InsertMode::Insert); - void insert(const memoryview& strings, + void insert(memoryview strings, InsertMode mode = InsertMode::Insert); void move_selections(LineCount move, @@ -126,7 +126,7 @@ public: ~IncrementalInserter(); void insert(String content); - void insert(const memoryview& strings); + void insert(memoryview strings); void erase(); void move_cursors(CharCount move); void move_cursors(LineCount move); -- cgit v1.2.3