[Libreoffice-commits] core.git: sd/source

Michael Stahl mstahl at redhat.com
Wed May 11 19:26:21 UTC 2016


 sd/source/ui/slideshow/slideshowimpl.cxx |   31 +++++++++++++++++++++++++------
 1 file changed, 25 insertions(+), 6 deletions(-)

New commits:
commit 148da261c8d92cfa6e6959fa6cf7119615a76539
Author: Michael Stahl <mstahl at redhat.com>
Date:   Wed May 11 13:07:28 2016 +0200

    sd: replace boost::mem_fn with C++11 lambda
    
    Change-Id: I5502730d042d385033f34ae888835637376ffb44
    Reviewed-on: https://gerrit.libreoffice.org/24887
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx
index 0f702e5..4bbe623 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)


More information about the Libreoffice-commits mailing list