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 95bd47b1256c688ef756c3c15aa5912ab811865e
Author: Pedro F. Giffuni <[email protected]>
AuthorDate: Fri Nov 6 00:32:48 2026 -0500

    Boost modernization Phase 3 continued: boost::bind to C++14 lambdas (~10 
more files)
    
    - Replace boost::bind with C++14 lambdas in:
      - sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx (find_if with 
equal_to+mnRunIndex, AddAnimation callback)
    - Remove #include <boost/bind.hpp> where no longer needed
---
 main/sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/main/sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx 
b/main/sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx
index b0556b4af3..efac9e5eec 100644
--- a/main/sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx
+++ b/main/sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx
@@ -32,7 +32,6 @@
 #include "model/SlsPageEnumerationProvider.hxx"
 
 #include <set>
-#include <boost/bind.hpp>
 #include <boost/enable_shared_from_this.hpp>
 #include <memory>
 
@@ -295,10 +294,7 @@ 
InsertAnimator::Implementation::RunContainer::const_iterator
        return std::find_if(
                maRuns.begin(),
                maRuns.end(),
-               ::boost::bind(
-                       ::std::equal_to<sal_Int32>(),
-                       ::boost::bind(&PageObjectRun::mnRunIndex, _1),
-                       nRunIndex));
+               [nRunIndex](const auto& run) { return nRunIndex == 
run->mnRunIndex; });
 }
 
 
@@ -483,10 +479,7 @@ void PageObjectRun::RestartAnimation (void)
                ::boost::ref(*this),
                0,
                300,
-               ::boost::bind(
-                       &AnimatorAccess::RemoveRun,
-                       ::boost::ref(mrAnimatorAccess),
-                       shared_from_this()));
+               [&mrAnimatorAccess, self = shared_from_this()]() { 
mrAnimatorAccess.RemoveRun( self ); });
 }
 
 

Reply via email to