summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-05-11 12:53:59 +0200
committerMichael Stahl <mstahl@redhat.com>2016-05-11 21:37:47 +0200
commit7ac1062c66427186f06697885a96e54ff1af6e0e (patch)
tree9c80de0181292f848fbb7d1c7df2a25b0b4d5899 /slideshow
parent148da261c8d92cfa6e6959fa6cf7119615a76539 (diff)
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
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/slideshowimpl.cxx16
1 files 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 <boost/mem_fn.hpp>
#include <map>
#include <vector>
#include <iterator>
@@ -1175,7 +1174,10 @@ void SlideShowImpl::displaySlide(
} // finally
maListenerContainer.forEach<presentation::XSlideShowListener>(
- boost::mem_fn( &presentation::XSlideShowListener::slideTransitionStarted ) );
+ [](uno::Reference<presentation::XSlideShowListener> 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<presentation::XSlideShowListener>(
- boost::mem_fn( &presentation::XSlideShowListener::slideTransitionStarted ) );
+ [](uno::Reference<presentation::XSlideShowListener> const& xListener)
+ {
+ xListener->slideTransitionStarted();
+ });
}
sal_Bool SlideShowImpl::nextEffect() throw (uno::RuntimeException, std::exception)
@@ -2278,7 +2283,10 @@ void SlideShowImpl::notifySlideAnimationsEnded()
} // finally
maListenerContainer.forEach<presentation::XSlideShowListener>(
- boost::mem_fn( &presentation::XSlideShowListener::slideAnimationsEnded ) );
+ [](uno::Reference<presentation::XSlideShowListener> const& xListener)
+ {
+ xListener->slideAnimationsEnded();
+ });
}
void SlideShowImpl::notifySlideEnded (const bool bReverse)