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.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/editor.cc') diff --git a/src/editor.cc b/src/editor.cc index eed0fbe2..c03fd396 100644 --- a/src/editor.cc +++ b/src/editor.cc @@ -93,7 +93,7 @@ void Editor::insert(const String& str, InsertMode mode) check_invariant(); } -void Editor::insert(const memoryview& strings, InsertMode mode) +void Editor::insert(memoryview strings, InsertMode mode) { scoped_edition edition(*this); if (strings.empty()) @@ -542,7 +542,7 @@ void IncrementalInserter::insert(String content) } } -void IncrementalInserter::insert(const memoryview& strings) +void IncrementalInserter::insert(memoryview strings) { auto& buffer = m_editor.buffer(); for (size_t i = 0; i < m_editor.m_selections.size(); ++i) -- cgit v1.2.3