[Libreoffice-commits] core.git: basctl/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Jan 2 17:17:50 UTC 2019


 basctl/source/basicide/macrodlg.cxx |    2 +-
 basctl/source/basicide/moduldl2.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 0d79068307828c3e447611a52eb36cbf34ea1f23
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Jan 2 17:18:08 2019 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Jan 2 18:17:26 2019 +0100

    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 <sbergman at redhat.com>

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;


More information about the Libreoffice-commits mailing list