diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-12-17 08:53:07 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-12-17 14:44:14 +0100 |
commit | c56a8280bdd605f77f0075a7f2bfa474aa2a26e5 (patch) | |
tree | 6b5982a71150da4c34be72d13b3514b7863d0bd8 /sd/source/ui/func/fuline.cxx | |
parent | 0574f8241acbe07c87a014fb0c8f12d2f3a8b785 (diff) |
Resolve deprecated implicit capture of *this by reference in C++20
...as flagged with -Werror=deprecated by trunk GCC in -std=c++2a mode. But
C++17 forbids "this" in combination with a capture-default of "=", so in such
cases list any entities explicitly that shall be captured by value.
Change-Id: Ic228cd20682277a0f93e3e75798356d0fbbb80d4
Reviewed-on: https://gerrit.libreoffice.org/65241
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sd/source/ui/func/fuline.cxx')
-rw-r--r-- | sd/source/ui/func/fuline.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/func/fuline.cxx b/sd/source/ui/func/fuline.cxx index 819995a99d59..5ddefa8b5cc6 100644 --- a/sd/source/ui/func/fuline.cxx +++ b/sd/source/ui/func/fuline.cxx @@ -77,7 +77,7 @@ void FuLine::DoExecute( SfxRequest& rReq ) SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); VclPtr<SfxAbstractTabDialog> pDlg( pFact->CreateSvxLineTabDialog(mpViewShell->GetFrameWeld(), pNewAttr.get(), mpDoc, pObj, bHasMarked) ); - pDlg->StartExecuteAsync([=](sal_Int32 nResult){ + pDlg->StartExecuteAsync([pDlg, this](sal_Int32 nResult){ if (nResult == RET_OK) { mpView->SetAttributes (*(pDlg->GetOutputItemSet ())); |