[Libreoffice-commits] core.git: sc/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Sun Jul 14 18:40:02 UTC 2019
sc/source/ui/drawfunc/drawsh.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit d7c2e893d8fd7c8e515c4cf075e62ea1baacdf17
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Sun Jul 14 13:37:24 2019 +0200
Commit: Stephan Bergmann <sbergman at 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 <sbergman at 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()));
More information about the Libreoffice-commits
mailing list