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 f91e33c4594f8989abaaac8d87c1723e593e3a60 Author: Pedro F. Giffuni <[email protected]> AuthorDate: Fri Nov 6 00:26:35 2026 -0500 Boost modernization Phase 3 continued: boost::bind to C++14 lambdas (~10 more files) - Replace boost::bind with C++14 lambdas in: - slideshow/source/engine/waitsymbol.cxx (viewAdded, find_if, remove_if) - Remove #include <boost/bind.hpp> where no longer needed --- main/slideshow/source/engine/waitsymbol.cxx | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/main/slideshow/source/engine/waitsymbol.cxx b/main/slideshow/source/engine/waitsymbol.cxx index 04434983da..2988d5611d 100644 --- a/main/slideshow/source/engine/waitsymbol.cxx +++ b/main/slideshow/source/engine/waitsymbol.cxx @@ -74,9 +74,7 @@ WaitSymbol::WaitSymbol( uno::Reference<rendering::XBitmap> const & xBitmap, { std::for_each( rViewContainer.begin(), rViewContainer.end(), - boost::bind( &WaitSymbol::viewAdded, - this, - _1 )); + [this](auto& view) { this->viewAdded( view ); } ); } void WaitSymbol::setVisible( const bool bVisible ) @@ -156,11 +154,7 @@ void WaitSymbol::viewRemoved( const UnoViewSharedPtr& rView ) maViews.erase( std::remove_if( maViews.begin(), maViews.end(), - boost::bind( - std::equal_to<UnoViewSharedPtr>(), - rView, - // select view: - boost::bind( std::select1st<ViewsVecT::value_type>(), _1 ) ) ), + [&rView](const auto& entry) { return rView == entry.first; } ) ), maViews.end() ); } @@ -171,11 +165,7 @@ void WaitSymbol::viewChanged( const UnoViewSharedPtr& rView ) std::find_if( maViews.begin(), maViews.end(), - boost::bind( - std::equal_to<UnoViewSharedPtr>(), - rView, - // select view: - boost::bind( std::select1st<ViewsVecT::value_type>(), _1 )))); + [&rView](const auto& entry) { return rView == entry.first; } )))); OSL_ASSERT( aModifiedEntry != maViews.end() ); if( aModifiedEntry == maViews.end() )
