sc/source/ui/drawfunc/drawsh.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit d7c2e893d8fd7c8e515c4cf075e62ea1baacdf17 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Sun Jul 14 13:37:24 2019 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Sun Jul 14 20:39:05 2019 +0200 -Werror=deprecated ("implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20"; but the recommended replacement with [=,this] leads to "'this' cannot be explicitly captured when the capture default is '='" failures in older C++ versions) Change-Id: Id759c9e7d15934357425230e6a3585f4b9ee8e6b Reviewed-on: https://gerrit.libreoffice.org/75575 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sc/source/ui/drawfunc/drawsh.cxx b/sc/source/ui/drawfunc/drawsh.cxx index 5e680fa598d7..5991c57bf56c 100644 --- a/sc/source/ui/drawfunc/drawsh.cxx +++ b/sc/source/ui/drawfunc/drawsh.cxx @@ -283,7 +283,8 @@ void ScDrawShell::ExecDrawAttr( SfxRequest& rReq ) aCombSet.Put( aNewGeoAttr ); pDlg->SetInputSet( &aCombSet ); - pDlg->StartExecuteAsync([=](sal_Int32 nResult){ + pDlg->StartExecuteAsync([pDlg, pRequest, pView, this]( + sal_Int32 nResult){ if (nResult == RET_OK) { pRequest->Done(*(pDlg->GetOutputItemSet())); @@ -301,7 +302,8 @@ void ScDrawShell::ExecDrawAttr( SfxRequest& rReq ) SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); VclPtr<SfxAbstractTabDialog> pDlg(pFact->CreateSvxTransformTabDialog(pWin ? pWin->GetFrameWeld() : nullptr, &aNewAttr, pView)); - pDlg->StartExecuteAsync([=](sal_Int32 nResult){ + pDlg->StartExecuteAsync([pDlg, pRequest, pView, this]( + sal_Int32 nResult){ if (nResult == RET_OK) { pRequest->Done(*(pDlg->GetOutputItemSet())); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits