diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-09-22 13:55:39 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-09-22 13:55:39 +0100 |
| commit | 0ac65e16105ee4ba2a3567f888ffc09b08296edb (patch) | |
| tree | f6cd164883640d39718c55f819db6cfd639ce65c /src | |
| parent | 6bcc038329cf947e4478bb664e255feba77132ab (diff) | |
Use std:move for selection parameters
Diffstat (limited to 'src')
| -rw-r--r-- | src/selection.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selection.cc b/src/selection.cc index de8e75b1..f4640e5e 100644 --- a/src/selection.cc +++ b/src/selection.cc @@ -16,13 +16,13 @@ void Selection::merge_with(const Selection& range) } SelectionList::SelectionList(Buffer& buffer, Selection s, size_t timestamp) - : m_buffer(&buffer), m_selections({ s }), m_timestamp(timestamp) + : m_buffer(&buffer), m_selections({ std::move(s) }), m_timestamp(timestamp) { check_invariant(); } SelectionList::SelectionList(Buffer& buffer, Selection s) - : SelectionList(buffer, s, buffer.timestamp()) + : SelectionList(buffer, std::move(s), buffer.timestamp()) {} SelectionList::SelectionList(Buffer& buffer, std::vector<Selection> s, size_t timestamp) |
