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 1ec7f69283ce6cb7c7139cbf6ac7d5d5f32d0cbf Author: Pedro F. Giffuni <[email protected]> AuthorDate: Fri Nov 6 00:37:07 2026 -0500 Boost modernization Phase 3 continued: boost::bind to C++14 lambdas (~30 more files) - Replace boost::bind with C++14 lambdas in: - sd/source/ui/framework/factories/BasicPaneFactory.cxx (CompareURL, ComparePane x2) - sd/source/ui/framework/factories/BasicViewFactory.cxx (CompareView) - sd/source/ui/framework/module/ModuleController.cxx (ProcessFactory, ProcessStartupService) - sd/source/ui/framework/configuration/ResourceFactoryManager.cxx (equal_to with second) - sd/source/ui/framework/configuration/ConfigurationUpdater.cxx (SetUpdateBeingProcessed ScopeGuard) - sd/source/ui/slideshow/slideshowimpl.cxx (beginEvent, endEvent, repeat, slideEnded, hyperLinkClicked) - sd/source/ui/slideshow/SlideShowRestarter.cxx (StartPresentation) - sd/source/ui/slideshow/slideshow.cxx (StartInPlacePresentationConfigurationCallback) - Remove #include <boost/bind.hpp> where no longer needed --- main/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx | 3 +-- main/sd/source/ui/framework/factories/BasicViewFactory.cxx | 3 +-- main/sd/source/ui/slideshow/SlideShowRestarter.cxx | 3 +-- main/sd/source/ui/slideshow/slideshow.cxx | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/main/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx b/main/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx index 80a12833d4..698b0d72b0 100644 --- a/main/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx +++ b/main/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx @@ -33,7 +33,6 @@ #include <comphelper/scopeguard.hxx> #include <tools/diagnose_ex.h> -#include <boost/bind.hpp> #include <memory> using namespace ::com::sun::star; @@ -179,7 +178,7 @@ void ConfigurationUpdater::UpdateConfiguration (void) #endif SetUpdateBeingProcessed(true); comphelper::ScopeGuard aScopeGuard ( - ::boost::bind(&ConfigurationUpdater::SetUpdateBeingProcessed, this, false)); + [this]() { this->SetUpdateBeingProcessed( false ); }); try { diff --git a/main/sd/source/ui/framework/factories/BasicViewFactory.cxx b/main/sd/source/ui/framework/factories/BasicViewFactory.cxx index c01ab44127..d71ddf9bd3 100644 --- a/main/sd/source/ui/framework/factories/BasicViewFactory.cxx +++ b/main/sd/source/ui/framework/factories/BasicViewFactory.cxx @@ -46,7 +46,6 @@ #include <vcl/wrkwin.hxx> #include <toolkit/helper/vclunohelper.hxx> -#include <boost/bind.hpp> #include <memory> using namespace ::com::sun::star; @@ -253,7 +252,7 @@ void SAL_CALL BasicViewFactory::releaseResource (const Reference<XResource>& rxV ::std::find_if( mpViewShellContainer->begin(), mpViewShellContainer->end(), - ::boost::bind(&ViewDescriptor::CompareView, _1, rxView))); + [&rxView](const auto& desc) { return desc.CompareView( rxView ); })); if (iViewShell != mpViewShellContainer->end()) { ::std::shared_ptr<ViewShell> pViewShell ((*iViewShell)->mpViewShell); diff --git a/main/sd/source/ui/slideshow/SlideShowRestarter.cxx b/main/sd/source/ui/slideshow/SlideShowRestarter.cxx index 5317f8356e..db163ba80a 100644 --- a/main/sd/source/ui/slideshow/SlideShowRestarter.cxx +++ b/main/sd/source/ui/slideshow/SlideShowRestarter.cxx @@ -29,7 +29,6 @@ #include <sfx2/viewfrm.hxx> #include <svx/svxids.hrc> #include <vcl/svapp.hxx> -#include <boost/bind.hpp> #include <memory> using namespace ::com::sun::star::uno; @@ -128,7 +127,7 @@ IMPL_LINK(SlideShowRestarter, EndPresentation, void*, EMPTYARG) pHelper->RunOnConfigurationEvent( FrameworkHelper::msConfigurationUpdateEndEvent, - ::boost::bind(&SlideShowRestarter::StartPresentation, shared_from_this())); + [self = shared_from_this()]() { self->StartPresentation(); }); pHelper->UpdateConfiguration(); } else diff --git a/main/sd/source/ui/slideshow/slideshow.cxx b/main/sd/source/ui/slideshow/slideshow.cxx index c38d92e144..d5a6eef1c1 100644 --- a/main/sd/source/ui/slideshow/slideshow.cxx +++ b/main/sd/source/ui/slideshow/slideshow.cxx @@ -54,7 +54,6 @@ #include "ViewShell.hxx" #include "SlideShowRestarter.hxx" #include "DrawController.hxx" -#include <boost/bind.hpp> #include <memory> using ::com::sun::star::presentation::XSlideShowController; @@ -1188,7 +1187,7 @@ void SlideShow::StartInPlacePresentation() } pHelper->RequestView( FrameworkHelper::msImpressViewURL, FrameworkHelper::msCenterPaneURL ); - pHelper->RunOnConfigurationEvent( FrameworkHelper::msConfigurationUpdateEndEvent, ::boost::bind(&SlideShow::StartInPlacePresentationConfigurationCallback, this) ); + pHelper->RunOnConfigurationEvent( FrameworkHelper::msConfigurationUpdateEndEvent, [this]() { this->StartInPlacePresentationConfigurationCallback(); } ); return; } else
