basctl/source/basicide/basides1.cxx | 2 +- sc/source/ui/drawfunc/drawsh.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit c905505348d8b44f54f1f51a2f33aca878fe6375 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Wed Dec 20 15:44:08 2023 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Dec 20 20:22:30 2023 +0100 capture these explicitly by name Change-Id: I0908aedada9c59426373080d7d3894b452693939 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161076 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx index 9ef9f75e3f40..806ce96a88a2 100644 --- a/basctl/source/basicide/basides1.cxx +++ b/basctl/source/basicide/basides1.cxx @@ -794,7 +794,7 @@ void Shell::ExecuteGlobal( SfxRequest& rReq ) auto pRequest = std::make_shared<SfxRequest>(rReq); rReq.Ignore(); // the 'old' request is not relevant any more auto xDlg = std::make_shared<ManageLanguageDialog>(pCurWin ? pCurWin->GetFrameWeld() : nullptr, m_pCurLocalizationMgr); - weld::DialogController::runAsync(xDlg, [=](sal_Int32 /*nResult*/){ + weld::DialogController::runAsync(xDlg, [pRequest](sal_Int32 /*nResult*/){ pRequest->Done(); }); } diff --git a/sc/source/ui/drawfunc/drawsh.cxx b/sc/source/ui/drawfunc/drawsh.cxx index 837cf4bc0222..679378bbafb8 100644 --- a/sc/source/ui/drawfunc/drawsh.cxx +++ b/sc/source/ui/drawfunc/drawsh.cxx @@ -492,7 +492,7 @@ void ScDrawShell::ExecuteLineDlg( const SfxRequest& rReq ) pObj, bHasMarked)); - pDlg->StartExecuteAsync([=](sal_Int32 nResult){ + pDlg->StartExecuteAsync([pDlg, pRequest, pView, bHasMarked](sal_Int32 nResult){ if ( nResult == RET_OK ) { if( bHasMarked ) @@ -524,7 +524,7 @@ void ScDrawShell::ExecuteAreaDlg( const SfxRequest& rReq ) pWin, &aNewAttr, rViewData.GetDocument().GetDrawLayer(), true, false)); - pDlg->StartExecuteAsync([=](sal_Int32 nResult){ + pDlg->StartExecuteAsync([pDlg, pRequest, pView, bHasMarked](sal_Int32 nResult){ if ( nResult == RET_OK ) { if( bHasMarked )