summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-07-14 13:37:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-07-14 20:39:05 +0200
commitd7c2e893d8fd7c8e515c4cf075e62ea1baacdf17 (patch)
tree9cfba50e923ccf0c45dcff4c02a1b0c4a4a44388 /sc
parent45415384b38156d2c83599e5c91de376c0c788ac (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: Id759c9e7d15934357425230e6a3585f4b9ee8e6b Reviewed-on: https://gerrit.libreoffice.org/75575 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/drawfunc/drawsh.cxx6
1 files changed, 4 insertions, 2 deletions
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()));