sc/source/ui/dataprovider/xmldataprovider.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
New commits: commit 01541ca943bc80a7d0383f66035e306bebc95736 Author: Simon Chenery <simon_chen...@yahoo.com> AuthorDate: Thu Jun 12 20:46:03 2025 +0200 Commit: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> CommitDate: Sat Jul 19 20:37:12 2025 +0200 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.lauhakan...@libreoffice.org> Tested-by: Jenkins diff --git a/sc/source/ui/dataprovider/xmldataprovider.cxx b/sc/source/ui/dataprovider/xmldataprovider.cxx index 19ebe49859d2..acdd7ef4a408 100644 --- a/sc/source/ui/dataprovider/xmldataprovider.cxx +++ b/sc/source/ui/dataprovider/xmldataprovider.cxx @@ -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)