diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-07-14 15:14:09 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-07-15 07:30:22 +0200 |
commit | f4566911ea1e8877371b1f63a69d19014bda2bcb (patch) | |
tree | 7bb8e7f4deb4a748e70fd4e823741f97ca0ccd39 /sw | |
parent | 3600ec48823cda1c408b2f21a906d1df273be5da (diff) |
-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: I6376e0503ef66bff5a0c27c1d997667669b6d5b1
Reviewed-on: https://gerrit.libreoffice.org/75579
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/shells/basesh.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/drawdlg.cxx | 6 | ||||
-rw-r--r-- | sw/source/uibase/shells/drwbassh.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/shells/frmsh.cxx | 2 |
4 files changed, 9 insertions, 5 deletions
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx index 156c969797d1..631c70f7a0bf 100644 --- a/sw/source/uibase/shells/basesh.cxx +++ b/sw/source/uibase/shells/basesh.cxx @@ -392,7 +392,7 @@ void SwBaseShell::ExecClpbrd(SfxRequest &rReq) pDlg->PreGetFormat(*aDataHelper); - pDlg->StartExecuteAsync([=, &rSh](sal_Int32 nResult){ + pDlg->StartExecuteAsync([aDataHelper, pDlg, &rSh, this](sal_Int32 nResult){ if (nResult == RET_OK) { // Temporary variables, because the shell could already be diff --git a/sw/source/uibase/shells/drawdlg.cxx b/sw/source/uibase/shells/drawdlg.cxx index b7e6fbd5ee11..6229cbd173d3 100644 --- a/sw/source/uibase/shells/drawdlg.cxx +++ b/sw/source/uibase/shells/drawdlg.cxx @@ -98,7 +98,8 @@ void SwDrawShell::ExecDrawDlg(SfxRequest& rReq) pDoc, true)); - pDlg->StartExecuteAsync([=](sal_Int32 nResult){ + pDlg->StartExecuteAsync([bChanged, bHasMarked, pDoc, pDlg, pSh, pView, this]( + sal_Int32 nResult){ if (nResult == RET_OK) { pSh->StartAction(); @@ -150,7 +151,8 @@ void SwDrawShell::ExecDrawDlg(SfxRequest& rReq) pObj, bHasMarked)); - pDlg->StartExecuteAsync([=](sal_Int32 nResult){ + pDlg->StartExecuteAsync([bChanged, bHasMarked, pDoc, pDlg, pSh, pView, this]( + sal_Int32 nResult){ if (nResult == RET_OK) { pSh->StartAction(); diff --git a/sw/source/uibase/shells/drwbassh.cxx b/sw/source/uibase/shells/drwbassh.cxx index 4cc10c9be1d1..409bcd94ac26 100644 --- a/sw/source/uibase/shells/drwbassh.cxx +++ b/sw/source/uibase/shells/drwbassh.cxx @@ -239,7 +239,9 @@ void SwDrawBaseShell::Execute(SfxRequest const &rReq) pDlg->SetInputSet( &aSet ); - pDlg->StartExecuteAsync([=, &rMarkList](sal_Int32 nResult){ + pDlg->StartExecuteAsync([bCaption, bChanged, pDlg, pFrameFormat, pSdrView, + pSh, &rMarkList, this]( + sal_Int32 nResult){ if (nResult == RET_OK) { SwFormatVertOrient aVOrientFinal(pFrameFormat->GetFormatAttr(RES_VERT_ORIENT)); diff --git a/sw/source/uibase/shells/frmsh.cxx b/sw/source/uibase/shells/frmsh.cxx index 31f1cc9ff4d4..38e085f2442b 100644 --- a/sw/source/uibase/shells/frmsh.cxx +++ b/sw/source/uibase/shells/frmsh.cxx @@ -1356,7 +1356,7 @@ void SwFrameShell::ExecDrawDlgTextFrame(SfxRequest const & rReq) pDoc, false)); - pDlg->StartExecuteAsync([=](sal_Int32 nResult){ + pDlg->StartExecuteAsync([pDlg, this](sal_Int32 nResult){ if(nResult == RET_OK) { // set attributes at FlyFrame |