diff options
author | Daniel Robertson <danlrobertson89@gmail.com> | 2015-08-21 21:51:09 -0400 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2015-08-24 21:20:13 +0000 |
commit | ead5bc3cfb07a4e96e367e7904dc674ee5f5ccd6 (patch) | |
tree | 46abe4e85efecb06058063290b14efeba08c1762 /slideshow/source/engine/usereventqueue.cxx | |
parent | 0a76c1fd6875bd094ebe2bfbed3d01c98dc0c19e (diff) |
slideshow: replace for_each with range-based loop
Replace ::std::for_each for a more readable range-based for loop in
cases in which the function object to be applied by for_each is more
readable as the body of a for loop.
Change-Id: Ib0b488b36ed58c65c56357e04391b85096d043aa
Reviewed-on: https://gerrit.libreoffice.org/17930
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'slideshow/source/engine/usereventqueue.cxx')
-rw-r--r-- | slideshow/source/engine/usereventqueue.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/slideshow/source/engine/usereventqueue.cxx b/slideshow/source/engine/usereventqueue.cxx index 53f043ab03ef..6eb579c77017 100644 --- a/slideshow/source/engine/usereventqueue.cxx +++ b/slideshow/source/engine/usereventqueue.cxx @@ -143,9 +143,8 @@ public: bRet = !rVec.empty(); // registered node found -> fire all events in the vector - std::for_each( rVec.begin(), rVec.end(), - boost::bind( &EventQueue::addEvent, - boost::ref( mrEventQueue ), _1 ) ); + for( const auto& pEvent : rVec ) + mrEventQueue.addEvent( pEvent ); rVec.clear(); } |