diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-07-13 20:41:57 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-07-14 15:15:49 +0200 |
commit | e3e325d0ce4a3520761eeb18aa606c479eafa381 (patch) | |
tree | 25e0cec420e0842d4637e4420363b87631d209d5 | |
parent | 18b7d1895d5ca160761955fd70a09ce0de1171c8 (diff) |
cid#1607284 COPY_INSTEAD_OF_MOVE
Change-Id: Iacaf551260e878f39a36adc8b6d0ea142c092f98
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170444
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
-rw-r--r-- | sc/source/ui/view/viewfun5.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/viewfun5.cxx b/sc/source/ui/view/viewfun5.cxx index c9a3c4bed01c..223a06f6424b 100644 --- a/sc/source/ui/view/viewfun5.cxx +++ b/sc/source/ui/view/viewfun5.cxx @@ -749,7 +749,8 @@ bool ScViewFunc::PasteDataFormatFormattedText( SotClipboardFormatId nFormatId, bAllowDialogs = bAllowDialogs && !SC_MOD()->IsInExecuteDrop(); - pDlg->StartExecuteAsync([this, pDlg, &rDoc, pStrm, nFormatId, pStrBuffer, pObj, bAllowDialogs](sal_Int32 nResult){ + pDlg->StartExecuteAsync([this, pDlg, &rDoc, pStrm, nFormatId, pStrBuffer, + pObj=std::move(pObj), bAllowDialogs](sal_Int32 nResult){ bool bShowErrorDialog = bAllowDialogs; if (RET_OK == nResult) { |