From 7ac1062c66427186f06697885a96e54ff1af6e0e Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 11 May 2016 12:53:59 +0200 Subject: slideshow: replace boost::mem_fn with C++11 lambdas A bit more verbose but we have less than 10 mem_fn now so better elimintate them all so hopefully we can get rid of the corresponding boost warning patches. Change-Id: I79e2f9994841125916d92bdce9973d956f2a68ce --- slideshow/source/engine/slideshowimpl.cxx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx index 1e8d9e667f9e..af483455d47d 100644 --- a/slideshow/source/engine/slideshowimpl.cxx +++ b/slideshow/source/engine/slideshowimpl.cxx @@ -95,7 +95,6 @@ #include "framerate.hxx" #include "pointersymbol.hxx" -#include #include #include #include @@ -1175,7 +1174,10 @@ void SlideShowImpl::displaySlide( } // finally maListenerContainer.forEach( - boost::mem_fn( &presentation::XSlideShowListener::slideTransitionStarted ) ); + [](uno::Reference const& xListener) + { + xListener->slideTransitionStarted(); + }); // We are currently rewinding an effect. This lead us from the next // slide to this one. To complete this we have to play back all main @@ -1206,7 +1208,10 @@ void SlideShowImpl::redisplayCurrentSlide() "SlideShowImpl::notifySlideTransitionEnded")); maListenerContainer.forEach( - boost::mem_fn( &presentation::XSlideShowListener::slideTransitionStarted ) ); + [](uno::Reference const& xListener) + { + xListener->slideTransitionStarted(); + }); } sal_Bool SlideShowImpl::nextEffect() throw (uno::RuntimeException, std::exception) @@ -2278,7 +2283,10 @@ void SlideShowImpl::notifySlideAnimationsEnded() } // finally maListenerContainer.forEach( - boost::mem_fn( &presentation::XSlideShowListener::slideAnimationsEnded ) ); + [](uno::Reference const& xListener) + { + xListener->slideAnimationsEnded(); + }); } void SlideShowImpl::notifySlideEnded (const bool bReverse) -- cgit