slideshow/source/engine/eventmultiplexer.cxx |   26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

New commits:
commit eae10743444b137bc9ec613c3167a48f2b832e54
Author:     FerMeza <fernando.meza.orteg...@gmail.com>
AuthorDate: Tue Apr 8 22:17:32 2025 -0600
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Wed Jul 2 09:37:43 2025 +0200

    tdf#165233 Use lambdas instead of std::bind
    
    Change-Id: Iadad4c996e2547a32aa8418c8cb01b693023f53f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183861
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
    Tested-by: Jenkins

diff --git a/slideshow/source/engine/eventmultiplexer.cxx 
b/slideshow/source/engine/eventmultiplexer.cxx
index 89faf56853ee..ad0059ebd5bb 100644
--- a/slideshow/source/engine/eventmultiplexer.cxx
+++ b/slideshow/source/engine/eventmultiplexer.cxx
@@ -390,10 +390,10 @@ void SAL_CALL EventMultiplexerListener::mousePressed(
     // might not be the main thread!
     if( mpEventQueue )
         mpEventQueue->addEvent(
-            makeEvent( std::bind( &EventMultiplexerImpl::mousePressed,
-                                    mpEventMultiplexer,
-                                    e ),
-                       u"EventMultiplexerImpl::mousePressed"_ustr) );
+            makeEvent( ([mpEventMux = this->mpEventMultiplexer, e] {
+                                    return mpEventMux->mousePressed(e);
+                                    }),
+                        u"EventMultiplexerImpl::mousePressed"_ustr ));
 }
 
 void SAL_CALL EventMultiplexerListener::mouseReleased(
@@ -405,9 +405,9 @@ void SAL_CALL EventMultiplexerListener::mouseReleased(
     // this might not be the main thread!
     if( mpEventQueue )
         mpEventQueue->addEvent(
-            makeEvent( std::bind( &EventMultiplexerImpl::mouseReleased,
-                                    mpEventMultiplexer,
-                                    e ),
+            makeEvent( ([mpEventMux = this->mpEventMultiplexer, e] {
+                                    return mpEventMux->mouseReleased(e);
+                                    }),
                        u"EventMultiplexerImpl::mouseReleased"_ustr) );
 }
 
@@ -433,9 +433,9 @@ void SAL_CALL EventMultiplexerListener::mouseDragged(
     // might not be the main thread!
     if( mpEventQueue )
         mpEventQueue->addEvent(
-            makeEvent( std::bind( &EventMultiplexerImpl::mouseDragged,
-                                    mpEventMultiplexer,
-                                    e ),
+            makeEvent( ([mpEventMux = this->mpEventMultiplexer, e] {
+                                    return mpEventMux->mouseDragged(e);
+                                    }),
                        u"EventMultiplexerImpl::mouseDragged"_ustr) );
 }
 
@@ -448,9 +448,9 @@ void SAL_CALL EventMultiplexerListener::mouseMoved(
     // might not be the main thread!
     if( mpEventQueue )
         mpEventQueue->addEvent(
-            makeEvent( std::bind( &EventMultiplexerImpl::mouseMoved,
-                                    mpEventMultiplexer,
-                                    e ),
+            makeEvent( ([mpEventMux = this->mpEventMultiplexer, e] {
+                                    return mpEventMux->mouseMoved(e);
+                                    }),
                        u"EventMultiplexerImpl::mouseMoved"_ustr) );
 }
 

Reply via email to