summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
diff options
context:
space:
mode:
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)