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/slide/userpaintoverlay.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/slide/userpaintoverlay.cxx')
-rw-r--r-- | slideshow/source/engine/slide/userpaintoverlay.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/slideshow/source/engine/slide/userpaintoverlay.cxx b/slideshow/source/engine/slide/userpaintoverlay.cxx index 33899122264c..960794fbf1fa 100644 --- a/slideshow/source/engine/slide/userpaintoverlay.cxx +++ b/slideshow/source/engine/slide/userpaintoverlay.cxx @@ -36,7 +36,6 @@ #include "screenupdater.hxx" #include "vieweventhandler.hxx" -#include <boost/bind.hpp> #include <boost/noncopyable.hpp> #include "slide.hxx" #include "cursormanager.hxx" @@ -76,11 +75,9 @@ namespace slideshow mnSize(100), mbActive( bActive ) { - std::for_each( rViews.begin(), - rViews.end(), - boost::bind( &PaintOverlayHandler::viewAdded, - this, - _1 )); + for( const auto& rView : rViews ) + this->viewAdded( rView ); + drawPolygons(); } |