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 93780f4cd9bad7afa615570dbe3cd0c4a920f27d
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 | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/main/sdext/source/presenter/PresenterButton.cxx 
b/main/sdext/source/presenter/PresenterButton.cxx
index e94af133d4..67a32a4876 100644
--- a/main/sdext/source/presenter/PresenterButton.cxx
+++ b/main/sdext/source/presenter/PresenterButton.cxx
@@ -35,7 +35,7 @@
 #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;
 using namespace ::com::sun::star::uno;
@@ -53,7 +53,7 @@ const static double gnVerticalBorder (5);
 ::rtl::Reference<PresenterButton> PresenterButton::Create (
     const css::uno::Reference<css::uno::XComponentContext>& rxComponentContext,
     const ::rtl::Reference<PresenterController>& rpPresenterController,
-    const ::boost::shared_ptr<PresenterTheme>& rpTheme,
+    const ::std::shared_ptr<PresenterTheme>& rpTheme,
     const css::uno::Reference<css::awt::XWindow>& rxParentWindow,
     const css::uno::Reference<css::rendering::XCanvas>& rxParentCanvas,
     const OUString& rsConfigurationName)
@@ -99,7 +99,7 @@ const static double gnVerticalBorder (5);
 PresenterButton::PresenterButton (
     const css::uno::Reference<css::uno::XComponentContext>& rxComponentContext,
     const ::rtl::Reference<PresenterController>& rpPresenterController,
-    const ::boost::shared_ptr<PresenterTheme>& rpTheme,
+    const ::std::shared_ptr<PresenterTheme>& rpTheme,
     const css::uno::Reference<css::awt::XWindow>& rxParentWindow,
     const PresenterTheme::SharedFontDescriptor& rpFont,
     const PresenterTheme::SharedFontDescriptor& rpMouseOverFont,
@@ -570,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