From 52225dfaeb78d2c99dfa7b2ef140183accf668a2 Mon Sep 17 00:00:00 2001 From: Devashish Gupta Date: Fri, 21 Mar 2025 02:59:03 +0530 Subject: [PATCH] tdf#165233 Use lambdas instead of std::bind Change-Id: Ie6a8c76bae10f52d8e97645d71e2825dd59c52c8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183184 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas Reviewed-by: Ilmari Lauhakangas --- framework/source/services/frame.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/framework/source/services/frame.cxx b/framework/source/services/frame.cxx index ff6d73bd9369..54c33bb96058 100644 --- a/framework/source/services/frame.cxx +++ b/framework/source/services/frame.cxx @@ -588,9 +588,10 @@ css::uno::Reference< css::lang::XComponent > SAL_CALL XFrameImpl::loadComponentF // 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 return LoadEnv::loadComponentFromURL(xThis, m_xContext, sURL, sTargetFrameName,