diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-09-29 10:22:21 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-09-30 13:13:06 +0200 |
commit | 730105ba64893ef80b50d76258c0e7b1dcccd160 (patch) | |
tree | 1171feafd9ed56f559e703dcea59c1eef3a40852 | |
parent | d9b92b0fc9209733d332ac6ae145833e6b1153f2 (diff) |
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 <michal.klocek@qt.io>
-rw-r--r-- | src/core/clipboard_qt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |