diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-07-26 01:17:12 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-07-26 01:50:36 +0200 |
| commit | eedd37c09acace58ceadacf8ecf9e883a2fd5a4a (patch) | |
| tree | ab3123463bd9b54ef61d74012abc49313572331b /src/editor.cc | |
| parent | 3862b5cbb8faf1514ed8a8fc413669414e7c614d (diff) | |
memoryview: always pass by value
Diffstat (limited to 'src/editor.cc')
| -rw-r--r-- | src/editor.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<String>& strings, InsertMode mode) +void Editor::insert(memoryview<String> strings, InsertMode mode) { scoped_edition edition(*this); if (strings.empty()) @@ -542,7 +542,7 @@ void IncrementalInserter::insert(String content) } } -void IncrementalInserter::insert(const memoryview<String>& strings) +void IncrementalInserter::insert(memoryview<String> strings) { auto& buffer = m_editor.buffer(); for (size_t i = 0; i < m_editor.m_selections.size(); ++i) |
