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 2e28cf6f3e1aed7654c002bb1fb80ea1c0aacd12
Author: Pedro F. Giffuni <[email protected]>
AuthorDate: Fri Nov 6 00:02:21 2026 -0500

    Boost modernization Phase 3 continued: boost::bind to C++14 lambdas (~20 
more files)
    
    - Replace boost::bind with C++14 lambdas in:
      - svx/source/gallery2/GalleryControl.cxx (InitSettings, KeyInput, 
ThemeSelectionHasChanged callbacks)
      - svx/source/sidebar/line/LineWidthPopup.cxx (PopupModeEndCallback)
      - svx/source/table/tabledesign.cxx (XModifyListener::modified)
      - reportdesign/source/filter/xml/xmlExport.cxx 
(XPropertySet::setPropertyValue)
      - reportdesign/source/ui/report/ReportController.cxx 
(XSelectionChangeListener::selectionChanged)
    - Remove #include <boost/bind.hpp> where no longer needed
---
 main/reportdesign/source/filter/xml/xmlExport.cxx       | 3 +--
 main/reportdesign/source/ui/report/ReportController.cxx | 3 +--
 main/svx/source/gallery2/GalleryControl.cxx             | 7 +++----
 main/svx/source/sidebar/line/LineWidthPopup.cxx         | 3 +--
 main/svx/source/table/tabledesign.cxx                   | 3 +--
 5 files changed, 7 insertions(+), 12 deletions(-)

diff --git a/main/reportdesign/source/filter/xml/xmlExport.cxx 
b/main/reportdesign/source/filter/xml/xmlExport.cxx
index a46727d930..74741bf529 100644
--- a/main/reportdesign/source/filter/xml/xmlExport.cxx
+++ b/main/reportdesign/source/filter/xml/xmlExport.cxx
@@ -62,7 +62,6 @@
 #include <vcl/svapp.hxx>
 #include <vos/mutex.hxx>
 
-#include <boost/bind.hpp>
 
 //--------------------------------------------------------------------------
 namespace rptxml
@@ -1247,7 +1246,7 @@ void ORptExport::exportAutoStyle(XPropertySet* 
_xProp,const Reference<XFormatted
         uno::Any aEmpty;
         aEmpty <<= aValue;
         ::std::for_each(aProps.begin(),aProps.end(),
-            
::boost::bind(&beans::XPropertySet::setPropertyValue,xBorderProp,_1,aEmpty));
+            [&](const auto& prop) { xBorderProp->setPropertyValue( prop, 
aEmpty ); }));
 
         ::std::vector< XMLPropertyState > 
aBorderStates(m_xCellStylesExportPropertySetMapper->Filter(xBorderProp));
         
::std::copy(aBorderStates.begin(),aBorderStates.end(),::std::back_inserter(aPropertyStates));
diff --git a/main/reportdesign/source/ui/report/ReportController.cxx 
b/main/reportdesign/source/ui/report/ReportController.cxx
index 65347cc0fa..fe9e883525 100644
--- a/main/reportdesign/source/ui/report/ReportController.cxx
+++ b/main/reportdesign/source/ui/report/ReportController.cxx
@@ -153,7 +153,6 @@
 #include "ReportControllerObserver.hxx"
 
 #include <boost/mem_fn.hpp>
-#include <boost/bind.hpp>
 #include <boost/utility.hpp>
 #include <memory>
 
@@ -2599,7 +2598,7 @@ void OReportController::Notify(SfxBroadcaster & /* _rBc 
*/, SfxHint const & _rHi
         }
         lang::EventObject aEvent(*this);
         m_aSelectionListeners.forEach<view::XSelectionChangeListener>(
-                       
::boost::bind(&view::XSelectionChangeListener::selectionChanged,_1,boost::cref(aEvent)));
+                       [this](const auto& listener) { 
listener->selectionChanged( aEvent ); }));
 
        }
 }
diff --git a/main/svx/source/gallery2/GalleryControl.cxx 
b/main/svx/source/gallery2/GalleryControl.cxx
index 9092da47c8..f33e9ab1bb 100644
--- a/main/svx/source/gallery2/GalleryControl.cxx
+++ b/main/svx/source/gallery2/GalleryControl.cxx
@@ -32,7 +32,6 @@
 #include <vcl/svapp.hxx>
 #include <sfx2/sidebar/Theme.hxx>
 
-#include <boost/bind.hpp>
 
 namespace svx { namespace sidebar {
 
@@ -47,13 +46,13 @@ GalleryControl::GalleryControl (
       mpSplitter(new GallerySplitter(
               this,
               GAL_RESID(GALLERY_SPLITTER),
-              ::boost::bind(&GalleryControl::InitSettings, this))),
+              [this]() { this->InitSettings(); }))),
       mpBrowser1(new GalleryBrowser1(
               this,
               GAL_RESID(GALLERY_BROWSER1),
               mpGallery,
-              ::boost::bind(&GalleryControl::KeyInput,this,_1,_2),
-              ::boost::bind(&GalleryControl::ThemeSelectionHasChanged, this))),
+              [this](auto& a1, auto& a2) { this->KeyInput( a1, a2 ); },
+              [this]() { this->ThemeSelectionHasChanged(); }))),
       mpBrowser2(new GalleryBrowser2(this, GAL_RESID(GALLERY_BROWSER2), 
mpGallery)),
       maLastSize(GetOutputSizePixel()),
       mbIsInitialResize(true)
diff --git a/main/svx/source/sidebar/line/LineWidthPopup.cxx 
b/main/svx/source/sidebar/line/LineWidthPopup.cxx
index cff0c5d394..ee7f76f297 100644
--- a/main/svx/source/sidebar/line/LineWidthPopup.cxx
+++ b/main/svx/source/sidebar/line/LineWidthPopup.cxx
@@ -25,7 +25,6 @@
 
 #include <unotools/viewoptions.hxx>
 
-#include <boost/bind.hpp>
 
 
 namespace svx { namespace sidebar {
@@ -38,7 +37,7 @@ LineWidthPopup::LineWidthPopup (
         rControlCreator,
         ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Width")))
 {
-    
SetPopupModeEndHandler(::boost::bind(&LineWidthPopup::PopupModeEndCallback, 
this));
+    SetPopupModeEndHandler( [this]() { this->PopupModeEndCallback(); } );
 }
 
 
diff --git a/main/svx/source/table/tabledesign.cxx 
b/main/svx/source/table/tabledesign.cxx
index 5b9bfdbf6f..1a00b844b3 100644
--- a/main/svx/source/table/tabledesign.cxx
+++ b/main/svx/source/table/tabledesign.cxx
@@ -54,7 +54,6 @@
 #include <vector>
 #include <map>
 
-#include <boost/bind.hpp>
 
 // 
-----------------------------------------------------------------------------
 
@@ -472,7 +471,7 @@ void TableDesignStyle::notifyModifyListener()
        if( pContainer )
        {
                EventObject aEvt( static_cast< OWeakObject * >( this ) );
-               pContainer->forEach<XModifyListener>( boost::bind( 
&XModifyListener::modified, _1, boost::cref( aEvt ) ) );
+               pContainer->forEach<XModifyListener>( [this](const auto& 
listener) { listener->modified( aEvt ); } );
        }
 }
 

Reply via email to