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 <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
This commit is contained in:
committed by
Ilmari Lauhakangas
parent
ef9586eb7d
commit
52225dfaeb
@@ -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,
|
||||
|
Reference in New Issue
Block a user