tdf#165233 replace std::bind with lambda in xmldataprovider.cxx

Also apply clang-format to changes, requested by git commit hook.

Change-Id: Id71d79b736b4dc2a5be5908d59d221ab7ffd54d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186433
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
This commit is contained in:
Simon Chenery
2025-06-12 20:46:03 +02:00
committed by Ilmari Lauhakangas
parent 9b79ae1161
commit 01541ca943

View File

@ -103,10 +103,9 @@ void XMLDataProvider::Import()
mpDoc.reset(new ScDocument(SCDOCMODE_CLIP));
mpDoc->ResetClip(mpDocument, SCTAB(0));
mxXMLFetchThread = new XMLFetchThread(*mpDoc, mrDataSource.getURL(),
mrDataSource.getXMLImportParam(), mrDataSource.getID(),
std::bind(&XMLDataProvider::ImportFinished, this),
std::vector(mrDataSource.getDataTransformation()));
mxXMLFetchThread = new XMLFetchThread(
*mpDoc, mrDataSource.getURL(), mrDataSource.getXMLImportParam(), mrDataSource.getID(),
[this]() { this->ImportFinished(); }, std::vector(mrDataSource.getDataTransformation()));
mxXMLFetchThread->launch();
if (mbDeterministic)