diff options
Diffstat (limited to 'slideshow/source/engine/transitions/slidechangebase.cxx')
-rw-r--r-- | slideshow/source/engine/transitions/slidechangebase.cxx | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/slideshow/source/engine/transitions/slidechangebase.cxx b/slideshow/source/engine/transitions/slidechangebase.cxx index 0a99eeb6e719..a39d40162147 100644 --- a/slideshow/source/engine/transitions/slidechangebase.cxx +++ b/slideshow/source/engine/transitions/slidechangebase.cxx @@ -29,7 +29,6 @@ #include "slidechangebase.hxx" #include "tools.hxx" -#include <boost/bind.hpp> #include <algorithm> using namespace com::sun::star; @@ -180,11 +179,8 @@ void SlideChangeBase::prefetch( const AnimatableShapeSharedPtr&, mrEventMultiplexer.addViewHandler( shared_from_this() ); // init views and create slide bitmaps - std::for_each( mrViewContainer.begin(), - mrViewContainer.end(), - boost::bind( &SlideChangeBase::viewAdded, - this, - _1 )); + for( const auto& rView : mrViewContainer ) + this->viewAdded( rView ); mbPrefetched = true; } @@ -415,11 +411,9 @@ void SlideChangeBase::viewRemoved( const UnoViewSharedPtr& rView ) std::remove_if( maViewData.begin(), maViewData.end(), - boost::bind( - std::equal_to<UnoViewSharedPtr>(), - rView, - // select view: - boost::bind( &ViewEntry::getView, _1 ))), + [&rView]( const ViewEntry& rViewEntry ) + // select and compare view + { return rView == rViewEntry.getView(); } ), maViewData.end() ); } @@ -434,11 +428,8 @@ void SlideChangeBase::viewChanged( const UnoViewSharedPtr& rView ) std::find_if( maViewData.begin(), maViewData.end(), - boost::bind( - std::equal_to<UnoViewSharedPtr>(), - rView, - // select view: - boost::bind( &ViewEntry::getView, _1 ) ))); + [&rView]( const ViewEntry& rViewEntry ) + { return rView == rViewEntry.getView(); } ) ); OSL_ASSERT( aModifiedEntry != maViewData.end() ); if( aModifiedEntry == maViewData.end() ) |