framework/source/services/desktop.cxx |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 5db7fb3c7560f883bc0e2882e34904d9b8d7bd0f
Author:     ArsalanKhan04 <arsal...@gmail.com>
AuthorDate: Fri Mar 14 01:07:50 2025 +0500
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Thu Mar 20 13:27:57 2025 +0100

    tdf#165233 Use lambdas instead of std::bind
    
    Change-Id: Iae08fdeed33601d40a4ce6124342ce7765f02653
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182880
    Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
    Tested-by: Jenkins
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>

diff --git a/framework/source/services/desktop.cxx 
b/framework/source/services/desktop.cxx
index db24a0bd1003..42b1505a610d 100644
--- a/framework/source/services/desktop.cxx
+++ b/framework/source/services/desktop.cxx
@@ -583,9 +583,10 @@ css::uno::Reference< css::lang::XComponent > SAL_CALL 
Desktop::loadComponentFrom
         // another thread, leading to an std::abort() at the end.
         SolarMutexGuard g;
 
-        return 
vcl::solarthread::syncExecute(std::bind(&LoadEnv::loadComponentFromURL, xThis,
-                                                       m_xContext, sURL, 
sTargetFrameName,
-                                                       nSearchFlags, 
lArguments));
+        return vcl::solarthread::syncExecute([this, xThis, sURL, 
sTargetFrameName, nSearchFlags, lArguments] {
+            return LoadEnv::loadComponentFromURL(xThis, m_xContext, sURL, 
sTargetFrameName,
+                                                 nSearchFlags, lArguments);
+        });
     }
     else
     {

Reply via email to