summaryrefslogtreecommitdiff
path: root/src/selection.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-03-09 13:48:41 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-03-09 13:54:09 +0000
commit1cec8df45e297a8136df6f293d4874ae6c6cb013 (patch)
tree7d713ba554765093238c924bcc9a6eaf7bf240ec /src/selection.hh
parent44f81d0b8b73367369de6be0757247a62876d4c1 (diff)
ArrayView content is not const anymore
As in upcoming std c++ array_view, ArrayView<T> points to mutable data, use ArrayView<const T> or alias ConstArrayView<T> for const data.
Diffstat (limited to 'src/selection.hh')
-rw-r--r--src/selection.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selection.hh b/src/selection.hh
index 1a5834a9..1bd27510 100644
--- a/src/selection.hh
+++ b/src/selection.hh
@@ -128,7 +128,7 @@ struct SelectionList
size_t timestamp() const { return m_timestamp; }
void update_timestamp() { m_timestamp = m_buffer->timestamp(); }
- void insert(ArrayView<String> strings, InsertMode mode,
+ void insert(ConstArrayView<String> strings, InsertMode mode,
bool select_inserted = false);
void erase();