diff options
author | Jörg Sonnenberger <joerg@NetBSD.org> | 2014-08-28 12:18:43 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-29 10:10:15 +0100 |
commit | 45dfbdca6a9afba1a6aef21623ec025ded635a4d (patch) | |
tree | 95295133c3d2872825081cb0b6e3984c4f437454 /slideshow | |
parent | c6270de939d5ee51b61dc4ac02c52f1d9b5b1e47 (diff) |
Fix build with boost-1.56.0.
Change-Id: I61686bf61ff1e0561c385492c563e4495456ca47
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/activities/activitybase.hxx | 2 | ||||
-rw-r--r-- | slideshow/source/engine/rehearsetimingsactivity.cxx | 3 | ||||
-rw-r--r-- | slideshow/source/engine/shapes/appletshape.cxx | 6 | ||||
-rw-r--r-- | slideshow/source/engine/shapes/drawshape.cxx | 4 | ||||
-rw-r--r-- | slideshow/source/engine/shapes/mediashape.cxx | 3 | ||||
-rw-r--r-- | slideshow/source/engine/unoviewcontainer.cxx | 3 |
6 files changed, 13 insertions, 8 deletions
diff --git a/slideshow/source/engine/activities/activitybase.hxx b/slideshow/source/engine/activities/activitybase.hxx index ec0d72b47e66..52ac9663a973 100644 --- a/slideshow/source/engine/activities/activitybase.hxx +++ b/slideshow/source/engine/activities/activitybase.hxx @@ -111,7 +111,7 @@ protected: ShapeAttributeLayerSharedPtr getShapeAttributeLayer() const { return mpAttributeLayer; } - bool isRepeatCountValid() const { return maRepeats; } + bool isRepeatCountValid() const { return bool(maRepeats); } double getRepeatCount() const { return *maRepeats; } bool isAutoReverse() const { return mbAutoReverse; } diff --git a/slideshow/source/engine/rehearsetimingsactivity.cxx b/slideshow/source/engine/rehearsetimingsactivity.cxx index c1513eb9223e..3add12f9044c 100644 --- a/slideshow/source/engine/rehearsetimingsactivity.cxx +++ b/slideshow/source/engine/rehearsetimingsactivity.cxx @@ -400,11 +400,12 @@ void RehearseTimingsActivity::viewsChanged() { // new sprite pos, transformation might have changed: maSpriteRectangle = calcSpriteRectangle( maViews.front().first ); + ::basegfx::B2DPoint rectMin( maSpriteRectangle.getMinimum() ); // reposition sprites for_each_sprite( boost::bind( &cppcanvas::Sprite::move, _1, - boost::cref(maSpriteRectangle.getMinimum())) ); + boost::cref( rectMin )) ); // sprites changed, need screen update mrScreenUpdater.notifyUpdate(); diff --git a/slideshow/source/engine/shapes/appletshape.cxx b/slideshow/source/engine/shapes/appletshape.cxx index f5de6d81a68c..3d784d0a7ab1 100644 --- a/slideshow/source/engine/shapes/appletshape.cxx +++ b/slideshow/source/engine/shapes/appletshape.cxx @@ -148,12 +148,13 @@ namespace slideshow void AppletShape::implViewsChanged() { // resize all ViewShapes + ::basegfx::B2DRectangle bounds( AppletShape::getBounds() ); ::std::for_each( maViewAppletShapes.begin(), maViewAppletShapes.end(), ::boost::bind( &ViewAppletShape::resize, _1, - ::boost::cref( AppletShape::getBounds())) ); + ::boost::cref( bounds )) ); } @@ -252,11 +253,12 @@ namespace slideshow bool AppletShape::implStartIntrinsicAnimation() { + ::basegfx::B2DRectangle bounds( getBounds() ); ::std::for_each( maViewAppletShapes.begin(), maViewAppletShapes.end(), ::boost::bind( &ViewAppletShape::startApplet, _1, - ::boost::cref( getBounds() ))); + ::boost::cref( bounds ))); mbIsPlaying = true; return true; diff --git a/slideshow/source/engine/shapes/drawshape.cxx b/slideshow/source/engine/shapes/drawshape.cxx index b0f12fd6e79b..a3b89b7d55fe 100644 --- a/slideshow/source/engine/shapes/drawshape.cxx +++ b/slideshow/source/engine/shapes/drawshape.cxx @@ -168,6 +168,7 @@ namespace slideshow } // redraw all view shapes, by calling their update() method + ViewShape::RenderArgs renderArgs( getViewRenderArgs() ); if( ::std::count_if( maViewShapes.begin(), maViewShapes.end(), ::boost::bind<bool>( @@ -178,8 +179,7 @@ namespace slideshow // the extra mem_fn. WTF. _1, ::boost::cref( mpCurrMtf ), - ::boost::cref( - getViewRenderArgs() ), + ::boost::cref( renderArgs ), nUpdateFlags, isVisible() ) ) != static_cast<ViewShapeVector::difference_type>(maViewShapes.size()) ) diff --git a/slideshow/source/engine/shapes/mediashape.cxx b/slideshow/source/engine/shapes/mediashape.cxx index f50e84b408aa..071fe60ad228 100644 --- a/slideshow/source/engine/shapes/mediashape.cxx +++ b/slideshow/source/engine/shapes/mediashape.cxx @@ -125,12 +125,13 @@ namespace slideshow void MediaShape::implViewsChanged() { // resize all ViewShapes + ::basegfx::B2DRectangle bounds( getBounds() ); ::std::for_each( maViewMediaShapes.begin(), maViewMediaShapes.end(), ::boost::bind( &ViewMediaShape::resize, _1, - ::boost::cref( getBounds())) ); + ::boost::cref( bounds )) ); } diff --git a/slideshow/source/engine/unoviewcontainer.cxx b/slideshow/source/engine/unoviewcontainer.cxx index a54799769e00..0f27c8f60af0 100644 --- a/slideshow/source/engine/unoviewcontainer.cxx +++ b/slideshow/source/engine/unoviewcontainer.cxx @@ -45,11 +45,12 @@ namespace slideshow const UnoViewVector::iterator aEnd( maViews.end() ); // already added? + uno::Reference<presentation::XSlideShowView> xView (rView->getUnoView()); if( ::std::find_if( maViews.begin(), aEnd, ::boost::bind( ::std::equal_to< uno::Reference< presentation::XSlideShowView > >(), - ::boost::cref( rView->getUnoView() ), + ::boost::cref( xView ), ::boost::bind( &UnoView::getUnoView, _1 ) ) ) != aEnd ) |