diff --git a/src/selection.cc b/src/selection.cc index de8e75b1c..f4640e5e2 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 s, size_t timestamp)