desktop/source/deployment/gui/license_dialog.cxx |   12 ++++--------
 desktop/source/deployment/gui/license_dialog.hxx |    2 --
 2 files changed, 4 insertions(+), 10 deletions(-)

New commits:
commit 39c6e59938f634c2fe40d81620c43a00a1f0e380
Author:     Simon Chenery <[email protected]>
AuthorDate: Tue Feb 18 21:30:10 2025 +0100
Commit:     Ilmari Lauhakangas <[email protected]>
CommitDate: Mon Mar 17 18:10:15 2025 +0100

    tdf#165233 replace std::bind and helper function with lambda
    
    Change-Id: I2fb3ff1ef5d9de581a45cd3d0aafbf830b349d14
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181853
    Tested-by: Jenkins
    Tested-by: Ilmari Lauhakangas <[email protected]>
    Reviewed-by: Ilmari Lauhakangas <[email protected]>

diff --git a/desktop/source/deployment/gui/license_dialog.cxx 
b/desktop/source/deployment/gui/license_dialog.cxx
index 24bf5e350d65..ea522923ca55 100644
--- a/desktop/source/deployment/gui/license_dialog.cxx
+++ b/desktop/source/deployment/gui/license_dialog.cxx
@@ -229,14 +229,10 @@ void LicenseDialog::setTitle( OUString const & )
 
 sal_Int16 LicenseDialog::execute()
 {
-    return vcl::solarthread::syncExecute(
-        std::bind(&LicenseDialog::solar_execute, this));
-}
-
-sal_Int16 LicenseDialog::solar_execute()
-{
-    LicenseDialogImpl dlg(Application::GetFrameWeld(m_parent), 
m_sExtensionName, m_sLicenseText);
-    return dlg.run();
+    return vcl::solarthread::syncExecute([this]() {
+        LicenseDialogImpl dlg(Application::GetFrameWeld(this->m_parent), 
this->m_sExtensionName, this->m_sLicenseText);
+        return dlg.run();
+    });
 }
 
 } // namespace dp_gui
diff --git a/desktop/source/deployment/gui/license_dialog.hxx 
b/desktop/source/deployment/gui/license_dialog.hxx
index 3c628a880df6..ce1a336276dc 100644
--- a/desktop/source/deployment/gui/license_dialog.hxx
+++ b/desktop/source/deployment/gui/license_dialog.hxx
@@ -33,8 +33,6 @@ class LicenseDialog
     OUString m_sExtensionName;
     OUString /* const */ m_sLicenseText;
 
-    sal_Int16 solar_execute();
-
 public:
     LicenseDialog(css::uno::Sequence<css::uno::Any> const& args,
                   css::uno::Reference<css::uno::XComponentContext> const& 
xComponentContext);

Reply via email to