diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-05-11 13:07:28 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-05-11 19:25:54 +0000 |
commit | 148da261c8d92cfa6e6959fa6cf7119615a76539 (patch) | |
tree | ed357b465428cdc1fc36aee4491b610ef4ca9f9b | |
parent | c7325f39031cb5c968c88c4efc6f58c0df8e01c7 (diff) |
sd: replace boost::mem_fn with C++11 lambda
Change-Id: I5502730d042d385033f34ae888835637376ffb44
Reviewed-on: https://gerrit.libreoffice.org/24887
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r-- | sd/source/ui/slideshow/slideshowimpl.cxx | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index 0f702e50eafe..4bbe6236f7ff 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -78,7 +78,6 @@ #include "customshowlist.hxx" #include "unopage.hxx" -#include <boost/mem_fn.hpp> using ::com::sun::star::animations::XAnimationNode; using ::com::sun::star::animations::XAnimationListener; @@ -3364,35 +3363,55 @@ void SAL_CALL SlideShowListenerProxy::paused( ) throw (css::uno::RuntimeExcepti { ::osl::MutexGuard aGuard( m_aMutex ); - maListeners.forEach<XSlideShowListener>( boost::mem_fn( &XSlideShowListener::paused ) ); + maListeners.forEach<XSlideShowListener>( + [](uno::Reference<presentation::XSlideShowListener> const& xListener) + { + xListener->paused(); + }); } void SAL_CALL SlideShowListenerProxy::resumed( ) throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard aGuard( m_aMutex ); - maListeners.forEach<XSlideShowListener>( boost::mem_fn( &XSlideShowListener::resumed ) ); + maListeners.forEach<XSlideShowListener>( + [](uno::Reference<presentation::XSlideShowListener> const& xListener) + { + xListener->resumed(); + }); } void SAL_CALL SlideShowListenerProxy::slideTransitionStarted( ) throw (RuntimeException, std::exception) { ::osl::MutexGuard aGuard( m_aMutex ); - maListeners.forEach<XSlideShowListener>( boost::mem_fn( &XSlideShowListener::slideTransitionStarted ) ); + maListeners.forEach<XSlideShowListener>( + [](uno::Reference<presentation::XSlideShowListener> const& xListener) + { + xListener->slideTransitionStarted(); + }); } void SAL_CALL SlideShowListenerProxy::slideTransitionEnded( ) throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard aGuard( m_aMutex ); - maListeners.forEach<XSlideShowListener>( boost::mem_fn( &XSlideShowListener::slideTransitionEnded ) ); + maListeners.forEach<XSlideShowListener>( + [](uno::Reference<presentation::XSlideShowListener> const& xListener) + { + xListener->slideTransitionEnded (); + }); } void SAL_CALL SlideShowListenerProxy::slideAnimationsEnded( ) throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard aGuard( m_aMutex ); - maListeners.forEach<XSlideShowListener>( boost::mem_fn( &XSlideShowListener::slideAnimationsEnded ) ); + maListeners.forEach<XSlideShowListener>( + [](uno::Reference<presentation::XSlideShowListener> const& xListener) + { + xListener->slideAnimationsEnded (); + }); } void SlideShowListenerProxy::slideEnded(sal_Bool bReverse) throw (RuntimeException, std::exception) |