sc/source/ui/dataprovider/sqldataprovider.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 3ba5eccc3b2565c3ec77b4e9765d5d30c70d929a Author: Simon Chenery <[email protected]> AuthorDate: Tue Nov 18 20:26:00 2025 +0100 Commit: Ilmari Lauhakangas <[email protected]> CommitDate: Thu Dec 4 06:27:04 2025 +0100 tdf#165233 replace std::bind with lambda in sqldataprovider.cxx Also apply clang-format to changes, requested by git commit hook. Change-Id: I7a978eb51935eb621e8ea0dc7f4661eb452c7efa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194175 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <[email protected]> diff --git a/sc/source/ui/dataprovider/sqldataprovider.cxx b/sc/source/ui/dataprovider/sqldataprovider.cxx index d015db233d33..e4610c6dcea1 100644 --- a/sc/source/ui/dataprovider/sqldataprovider.cxx +++ b/sc/source/ui/dataprovider/sqldataprovider.cxx @@ -144,9 +144,9 @@ void SQLDataProvider::Import() mpDoc.reset(new ScDocument(SCDOCMODE_CLIP)); mpDoc->ResetClip(mpDocument, SCTAB(0)); - mxSQLFetchThread = new SQLFetchThread(*mpDoc, mrDataSource.getID(), - std::bind(&SQLDataProvider::ImportFinished, this), - std::vector(mrDataSource.getDataTransformation())); + mxSQLFetchThread + = new SQLFetchThread(*mpDoc, mrDataSource.getID(), [this]() { this->ImportFinished(); }, + std::vector(mrDataSource.getDataTransformation())); if (mbDeterministic) {
