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 a58d2993d1cc1881fb10406979958d5691f5d1f2
Author: Pedro F. Giffuni <[email protected]>
AuthorDate: Fri Nov 6 00:23:20 2026 -0500

    Boost modernization Phase 3 continued: boost::bind to C++14 lambdas (~15 
more files)
    
    - Replace boost::bind with C++14 lambdas in:
      - slideshow/source/engine/shapes/viewshape.cxx (find_if with 
equal_to+getDestinationCanvas)
      - slideshow/source/engine/shapes/drawshapesubsetting.cxx 
(updateSubsetBounds)
      - slideshow/source/engine/effectrewinder.cxx (asynchronousRewind x2)
      - slideshow/source/engine/slideview.cxx (notifyViewChanged, 
notifyViewClobbered)
    - Remove #include <boost/bind.hpp> where no longer needed
---
 main/slideshow/source/engine/slideview.cxx | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/main/slideshow/source/engine/slideview.cxx 
b/main/slideshow/source/engine/slideview.cxx
index 1c0f03ea94..fed10458fa 100644
--- a/main/slideshow/source/engine/slideview.cxx
+++ b/main/slideshow/source/engine/slideview.cxx
@@ -62,7 +62,6 @@
 #include <com/sun/star/presentation/XSlideShow.hpp>
 
 #include <boost/noncopyable.hpp>
-#include <boost/bind.hpp>
 #include <memory>
 
 #include <vector>
@@ -1069,10 +1068,7 @@ void SlideView::modified( const lang::EventObject& 
/*aEvent*/ )
     // notify view change. Don't call EventMultiplexer directly, this
     // might not be the main thread!
     mrEventQueue.addEvent(
-        makeEvent( boost::bind( (bool (EventMultiplexer::*)(
-                                     const 
uno::Reference<presentation::XSlideShowView>&))
-                                &EventMultiplexer::notifyViewChanged,
-                                boost::ref(mrEventMultiplexer), mxView ),
+        makeEvent( [&]() { mrEventMultiplexer.notifyViewChanged( mxView ); },
                    "EventMultiplexer::notifyViewChanged"));
 }
 
@@ -1086,8 +1082,7 @@ void SlideView::windowPaint( const awt::PaintEvent& /*e*/ 
)
     // notify view clobbering. Don't call EventMultiplexer directly,
     // this might not be the main thread!
     mrEventQueue.addEvent(
-        makeEvent( boost::bind( &EventMultiplexer::notifyViewClobbered,
-                                boost::ref(mrEventMultiplexer), mxView ),
+        makeEvent( [&]() { mrEventMultiplexer.notifyViewClobbered( mxView ); },
                    "EventMultiplexer::notifyViewClobbered") );
 }
 

Reply via email to