From 0d79068307828c3e447611a52eb36cbf34ea1f23 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 2 Jan 2019 17:18:08 +0100 Subject: Resolve deprecated implicit capture of *this by reference in C++20 ...which got freshly introduced after c56a8280bdd605f77f0075a7f2bfa474aa2a26e5 "Resolve deprecated implicit capture of *this by reference in C++20" Change-Id: I15659f2cb7d940ac2310f39f76f084265357854e Reviewed-on: https://gerrit.libreoffice.org/65810 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- basctl/source/basicide/macrodlg.cxx | 2 +- basctl/source/basicide/moduldl2.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx index fb2500aad587..7f2ad1fb7d67 100644 --- a/basctl/source/basicide/macrodlg.cxx +++ b/basctl/source/basicide/macrodlg.cxx @@ -742,7 +742,7 @@ IMPL_LINK(MacroChooser, ButtonHdl, weld::Button&, rButton, void) m_xBasicBox->get_selected(m_xBasicBoxIter.get()); EntryDescriptor aDesc = m_xBasicBox->GetEntryDescriptor(m_xBasicBoxIter.get()); VclPtrInstance< OrganizeDialog > pDlg( nullptr, 0, aDesc ); //TODO - pDlg->StartExecuteAsync([=](sal_Int32 nRet){ + pDlg->StartExecuteAsync([this](sal_Int32 nRet){ if ( nRet ) // not only closed { m_xDialog->response(Macro_Edit); diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index 5bbcd1a5dccd..9e351bac3ff4 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -831,7 +831,7 @@ void LibPage::InsertLib() if ( aExtension != aLibExtension && aExtension != aContExtension ) pLibDlg->EnableReference(false); - pLibDlg->StartExecuteAsync([=](sal_Int32 nResult) + pLibDlg->StartExecuteAsync([aContExtension, aDlgURLObj, aExtension, aLibExtension, aModURLObj, pLibDlg, xDlgLibContImport, xModLibContImp, xModLibContImport, this](sal_Int32 nResult) { if (!nResult ) return; -- cgit