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