This is an automated email from the ASF dual-hosted git repository. asf-gitbox-commits pushed a commit to branch compilers-101 in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 5033e9caa9e8da4e805cc1a952c7bdf8c67b52e1 Author: Pedro F. Giffuni <[email protected]> AuthorDate: Fri Nov 6 00:12:12 2026 -0500 Boost modernization Phase 3 continued: boost::bind to C++14 lambdas (~20 more files) - Replace boost::bind with C++14 lambdas in: - vcl/aqua/source/gdi/salprn.cxx (rtl_freeMemory deleter) - canvas/source/tools/surfaceproxy.cxx (Surface::draw, drawRectangularArea, drawWithClip x3) - sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx (GetTransparentColor, SetFillColor, SetLineColor, Create*PopupControl x4) - Remove #include <boost/bind.hpp> where no longer needed --- main/canvas/source/vcl/canvashelper_texturefill.cxx | 5 +---- main/xmloff/source/core/RDFaExportHelper.cxx | 10 +++++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/main/canvas/source/vcl/canvashelper_texturefill.cxx b/main/canvas/source/vcl/canvashelper_texturefill.cxx index 1c24f9e4b8..c6e58952a0 100644 --- a/main/canvas/source/vcl/canvashelper_texturefill.cxx +++ b/main/canvas/source/vcl/canvashelper_texturefill.cxx @@ -60,7 +60,6 @@ #include <canvas/canvastools.hxx> #include <canvas/parametricpolypolygon.hxx> -#include <boost/bind.hpp> #include "spritecanvas.hxx" #include "canvashelper.hxx" @@ -772,9 +771,7 @@ namespace vclcanvas std::transform(&rValues.maColors[0], &rValues.maColors[0]+rValues.maColors.getLength(), aColors.begin(), - boost::bind( - &vcl::unotools::stdColorSpaceSequenceToColor, - _1)); + [](const auto& val) { return vcl::unotools::stdColorSpaceSequenceToColor( val ); })); // TODO(E1): Return value // TODO(F1): FillRule diff --git a/main/xmloff/source/core/RDFaExportHelper.cxx b/main/xmloff/source/core/RDFaExportHelper.cxx index 064fca950d..1ffd09a964 100644 --- a/main/xmloff/source/core/RDFaExportHelper.cxx +++ b/main/xmloff/source/core/RDFaExportHelper.cxx @@ -199,10 +199,14 @@ RDFaExportHelper::AddRDFa( ::rtl::OUStringBuffer property; ::comphelper::intersperse( - ::comphelper::stl_begin(rStatements), - ::comphelper::stl_end(rStatements), + ::boost::make_transform_iterator( + ::comphelper::stl_begin(rStatements), + [&](const auto& stmt) { return makeCURIE( &m_rExport, stmt.Predicate ); }), + // argh, this must be the same type :( + ::boost::make_transform_iterator( + ::comphelper::stl_end(rStatements), + [&](const auto& stmt) { return makeCURIE( &m_rExport, stmt.Predicate ); }), ::comphelper::OUStringBufferAppender(property), - ::rtl::OUString(" ")); ::rtl::OUString::createFromAscii(" ")); m_rExport.AddAttribute(XML_NAMESPACE_XHTML, token::XML_PROPERTY,
