summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-08-03 17:32:25 +0200
committerMichael Stahl <mstahl@redhat.com>2015-08-03 17:32:25 +0200
commitc05bf5e494faad57400f9c04079cb99ff6b805dd (patch)
tree28bbd3c5b442bbc098a85fc444f6ac00fcfbe08a
parent38a4b5ea2ab7188ce61d18c655893482dd098772 (diff)
slideshow: convert generateEvent args from boost::bind
Change-Id: I85d240989e41a45b62a4631bb847daccd1919f34
-rw-r--r--slideshow/source/engine/animationnodes/basenode.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/slideshow/source/engine/animationnodes/basenode.cxx b/slideshow/source/engine/animationnodes/basenode.cxx
index 0aced6f0d913..4c06a809f844 100644
--- a/slideshow/source/engine/animationnodes/basenode.cxx
+++ b/slideshow/source/engine/animationnodes/basenode.cxx
@@ -463,8 +463,9 @@ bool BaseNode::resolve()
// shape).
uno::Any const aBegin( mxAnimationNode->getBegin() );
if (aBegin.hasValue()) {
+ auto self(mpSelf);
mpCurrentEvent = generateEvent(
- aBegin, boost::bind( &AnimationNode::activate, mpSelf ),
+ aBegin, [self] () { self->activate(); },
maContext, mnStartDelay );
}
else {
@@ -545,9 +546,10 @@ void BaseNode::scheduleDeactivationEvent( EventSharedPtr const& pEvent )
// but what if it does not schedule anything?
// TODO(F2): Handle end time attribute, too
+ auto self(mpSelf);
mpCurrentEvent = generateEvent(
mxAnimationNode->getDuration(),
- boost::bind( &AnimationNode::deactivate, mpSelf ),
+ [self] () { self->deactivate(); },
maContext, 0.0 );
}
}