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 41044b5f0172800840db49e535265b7abe93897d
Author: Pedro F. Giffuni <[email protected]>
AuthorDate: Thu Nov 5 23:55:50 2026 -0500

    Boost modernization Phase 3 continued: boost::bind to C++14 lambdas (~50 
more files)
    
    - Replace boost::bind with C++14 lambdas in:
      - sdext/source/presenter/PresenterClock.cxx (ThemeNameComparator, 
LoadBitmap predicates)
      - sdext/source/presenter/PresenterNotesView.cxx (SetTop callback)
      - sdext/source/presenter/PresenterScreen.cxx (ShutdownPresenterScreen, 
ProcessComponent, ProcessViewDescription)
      - sdext/source/presenter/PresenterPaneFactory.cxx (SpriteProvider 
callback)
    - Remove #include <boost/bind.hpp> where no longer needed
    - Captures local variables by reference where needed
---
 main/sdext/source/presenter/PresenterButton.cxx | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/main/sdext/source/presenter/PresenterButton.cxx 
b/main/sdext/source/presenter/PresenterButton.cxx
index 773e76ad58..67a32a4876 100644
--- a/main/sdext/source/presenter/PresenterButton.cxx
+++ b/main/sdext/source/presenter/PresenterButton.cxx
@@ -35,7 +35,6 @@
 #include <com/sun/star/drawing/XPresenterHelper.hpp>
 #include <com/sun/star/rendering/CompositeOperation.hpp>
 #include <com/sun/star/rendering/TextDirection.hpp>
-#include <boost/bind.hpp>
 #include <memory>
 
 using namespace ::com::sun::star;
@@ -571,10 +570,7 @@ Reference<beans::XPropertySet> 
PresenterButton::GetConfigurationProperties (
             Reference<container::XNameAccess>(
                 
aConfiguration.GetConfigurationNode(A2S("PresenterScreenSettings/Buttons")),
                 UNO_QUERY),
-            ::boost::bind(&PresenterConfigurationAccess::IsStringPropertyEqual,
-                rsConfgurationName,
-                A2S("Name"),
-                _2)),
+            [&rsConfgurationName](const auto& key, const auto& value) { return 
PresenterConfigurationAccess::IsStringPropertyEqual( rsConfgurationName, 
A2S("Name"), value ); }),
         UNO_QUERY);
 }
 

Reply via email to