summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-21 20:51:24 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-22 11:14:41 +0200
commit3133788fb5b8598ae275c566a9f55f88a668abf3 (patch)
tree1c12bd229dd74a4af3d8808efba92eefb225e2d5 /sc/source/ui/view
parentb547d13a4672ebc3fd355f6f1751965d82fdcdfc (diff)
cid#1608424 COPY_INSTEAD_OF_MOVE
and cid#1607592 COPY_INSTEAD_OF_MOVE cid#1607487 COPY_INSTEAD_OF_MOVE cid#1607480 COPY_INSTEAD_OF_MOVE cid#1607444 COPY_INSTEAD_OF_MOVE cid#1607369 COPY_INSTEAD_OF_MOVE cid#1607356 COPY_INSTEAD_OF_MOVE cid#1607342 COPY_INSTEAD_OF_MOVE cid#1607329 COPY_INSTEAD_OF_MOVE cid#1607327 COPY_INSTEAD_OF_MOVE cid#1607303 COPY_INSTEAD_OF_MOVE cid#1607284 COPY_INSTEAD_OF_MOVE Change-Id: Ia2d5d4e2de8ca96a9557df5266754e52efa4f60e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170826 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r--sc/source/ui/view/tabvwsh3.cxx3
-rw-r--r--sc/source/ui/view/tabvwsha.cxx7
-rw-r--r--sc/source/ui/view/viewfun5.cxx3
3 files changed, 8 insertions, 5 deletions
diff --git a/sc/source/ui/view/tabvwsh3.cxx b/sc/source/ui/view/tabvwsh3.cxx
index 7445a23d1d3b..2984cb3c9e19 100644
--- a/sc/source/ui/view/tabvwsh3.cxx
+++ b/sc/source/ui/view/tabvwsh3.cxx
@@ -219,7 +219,8 @@ void ScTabViewShell::ExecProtectTable( SfxRequest& rReq )
pDlg->PreRun();
- weld::DialogController::runAsync(pDlg, [this, nTab, pDlg, xRequest](sal_Int32 response) {
+ weld::DialogController::runAsync(pDlg, [this, nTab, pDlg,
+ xRequest=std::move(xRequest)](sal_Int32 response) {
if (response == RET_OK)
{
OUString aPassword = pDlg->GetPassword();
diff --git a/sc/source/ui/view/tabvwsha.cxx b/sc/source/ui/view/tabvwsha.cxx
index c4d48418d0ac..a784e9d759d4 100644
--- a/sc/source/ui/view/tabvwsha.cxx
+++ b/sc/source/ui/view/tabvwsha.cxx
@@ -1580,9 +1580,10 @@ void ScTabViewShell::ExecuteStyleEdit(SfxRequest& rReq, SfxStyleSheetBase* pStyl
auto xRequest = std::make_shared<SfxRequest>(rReq);
rReq.Ignore(); // the 'old' request is not relevant any more
pDlg->StartExecuteAsync(
- [this, pDlg, xRequest=std::move(xRequest), pStyleSheet, nRetMask, xOldSet, nSlotId, bAddUndo, bUndo,
- aOldData=rOldData, aNewData=rNewData, aOldName, eFamily, bStyleToMarked, bListAction,
- pEditObject, aSelection]
+ [this, pDlg, xRequest=std::move(xRequest), pStyleSheet,
+ nRetMask, xOldSet=std::move(xOldSet), nSlotId, bAddUndo, bUndo,
+ aOldData=rOldData, aNewData=rNewData, aOldName, eFamily, bStyleToMarked,
+ bListAction, pEditObject, aSelection]
(sal_Int32 nResult) mutable -> void
{
SetInFormatDialog(false);
diff --git a/sc/source/ui/view/viewfun5.cxx b/sc/source/ui/view/viewfun5.cxx
index 223a06f6424b..86840978f6fb 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,
+ pDlg->StartExecuteAsync([this, pDlg, &rDoc, pStrm=std::move(pStrm),
+ nFormatId, pStrBuffer=std::move(pStrBuffer),
pObj=std::move(pObj), bAllowDialogs](sal_Int32 nResult){
bool bShowErrorDialog = bAllowDialogs;
if (RET_OK == nResult)