diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-09-29 10:22:21 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-09-30 16:32:27 +0000 |
commit | 7a03f9939d200568ba2322c18680366b7c1760e1 (patch) | |
tree | 0df6ede9be48c648f9abb1f6439e3ae00c9a87ef /src | |
parent | 8123368cc00e4eba94016218c91b191efd3d8634 (diff) |
Fix move of moved value
Do not call the copy to selection with the unique data source pointer.
Change-Id: Ie2c60e3efd2eb4e634bf95f8bdbe1ba8f1f89301
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
(cherry picked from commit 730105ba64893ef80b50d76258c0e7b1dcccd160)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-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); |