From ed9867be93522316f36d1f9001ccb224107aadae Mon Sep 17 00:00:00 2001 From: "Mario J. Rugiero" Date: Sat, 24 Oct 2015 16:50:19 -0300 Subject: Replace boost::bind by lambdas in avmedia tree. Change-Id: I0072ba9972a6c4d1565b1d3826202ff11f0c335d Reviewed-on: https://gerrit.libreoffice.org/19582 Tested-by: Jenkins Reviewed-by: Noel Grandin --- avmedia/source/vlc/vlcframegrabber.cxx | 3 +-- avmedia/source/vlc/vlcplayer.cxx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/avmedia/source/vlc/vlcframegrabber.cxx b/avmedia/source/vlc/vlcframegrabber.cxx index 6ba85f4b196a..cdf4a341bd7d 100644 --- a/avmedia/source/vlc/vlcframegrabber.cxx +++ b/avmedia/source/vlc/vlcframegrabber.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include #include #include #include @@ -75,7 +74,7 @@ VLCFrameGrabber::VLCFrameGrabber( wrapper::EventHandler& eh, const rtl::OUString const rtl::OUString& fileName = utl::TempFile::CreateTempName(); { wrapper::EventManager manager( mPlayer, mEventHandler ); - manager.onPaused(boost::bind(&osl::Condition::set, &condition)); + manager.onPaused([&condition](){ condition.set(); }); if ( !mPlayer.play() ) { diff --git a/avmedia/source/vlc/vlcplayer.cxx b/avmedia/source/vlc/vlcplayer.cxx index 89e99815efb1..1318a181abb7 100644 --- a/avmedia/source/vlc/vlcplayer.cxx +++ b/avmedia/source/vlc/vlcplayer.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include #include #include #include @@ -130,7 +129,7 @@ void SAL_CALL VLCPlayer::setPlaybackLoop( sal_Bool bSet ) throw ( css::uno::Runt mPlaybackLoop = bSet; if ( bSet ) - mEventManager.onEndReached(boost::bind(&VLCPlayer::replay, this)); + mEventManager.onEndReached([this](){ this->replay(); }); else mEventManager.onEndReached(); } -- cgit