diff options
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r-- | sc/source/ui/view/tabvwsha.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwshf.cxx | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/ui/view/tabvwsha.cxx b/sc/source/ui/view/tabvwsha.cxx index c332c9542a66..46baa40875fb 100644 --- a/sc/source/ui/view/tabvwsha.cxx +++ b/sc/source/ui/view/tabvwsha.cxx @@ -615,10 +615,10 @@ void ScTabViewShell::ExecuteCellFormatDlg(SfxRequest& rReq, const OUString &rNam if (!rName.isEmpty()) pDlg->SetCurPageId(rName); - auto pRequest = std::make_shared<SfxRequest>(rReq); + auto xRequest = std::make_shared<SfxRequest>(rReq); rReq.Ignore(); // the 'old' request is not relevant any more - pDlg->StartExecuteAsync([pDlg, pOldSet, pRequest, this](sal_Int32 nResult){ + pDlg->StartExecuteAsync([pDlg, pOldSet, xRequest=std::move(xRequest), this](sal_Int32 nResult){ bInFormatDialog = false; if ( nResult == RET_OK ) @@ -631,7 +631,7 @@ void ScTabViewShell::ExecuteCellFormatDlg(SfxRequest& rReq, const OUString &rNam ApplyAttributes(*pOutSet, *pOldSet); - pRequest->Done(*pOutSet); + xRequest->Done(*pOutSet); } pDlg->disposeOnce(); diff --git a/sc/source/ui/view/tabvwshf.cxx b/sc/source/ui/view/tabvwshf.cxx index 2ac3b93760a5..42d629508bc8 100644 --- a/sc/source/ui/view/tabvwshf.cxx +++ b/sc/source/ui/view/tabvwshf.cxx @@ -163,8 +163,8 @@ void ScTabViewShell::ExecuteTable( SfxRequest& rReq ) } } - std::shared_ptr<SfxRequest> pReq = std::make_shared<SfxRequest>(rReq); - pDlg->StartExecuteAsync([this, pDlg, pReq](sal_Int32 nResult){ + std::shared_ptr<SfxRequest> xReq = std::make_shared<SfxRequest>(rReq); + pDlg->StartExecuteAsync([this, pDlg, xReq = std::move(xReq)](sal_Int32 nResult){ std::vector<OUString> sTables; if (RET_OK == nResult) { @@ -172,11 +172,11 @@ void ScTabViewShell::ExecuteTable( SfxRequest& rReq ) for (auto a : aSelectedRows) { OUString sTable = pDlg->GetEntry(a); - pReq->AppendItem( SfxStringItem( FID_TABLE_SHOW, sTable ) ); + xReq->AppendItem( SfxStringItem( FID_TABLE_SHOW, sTable ) ); sTables.push_back(sTable); } ShowTable( sTables ); - pReq->Done(); + xReq->Done(); } pDlg->disposeOnce(); }); |