From 730105ba64893ef80b50d76258c0e7b1dcccd160 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 29 Sep 2021 10:22:21 +0200 Subject: Fix move of moved value Do not call the copy to selection with the unique data source pointer. Pick-to: 6.2 Change-Id: Ie2c60e3efd2eb4e634bf95f8bdbe1ba8f1f89301 Reviewed-by: Michal Klocek --- src/core/clipboard_qt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/clipboard_qt.cpp b/src/core/clipboard_qt.cpp index d5d1abcd5..026653cbb 100644 --- a/src/core/clipboard_qt.cpp +++ b/src/core/clipboard_qt.cpp @@ -127,7 +127,7 @@ void ClipboardQt::WritePortableRepresentations(ui::ClipboardBuffer type, const O // Copy text and SourceTag to the selection clipboard. WritePortableRepresentations(ui::ClipboardBuffer::kSelection, ObjectMap(text_iter, text_iter + 1), - std::move(data_src)); + nullptr); } } m_dataSrc[type] = std::move(data_src); -- cgit v1.2.3