summaryrefslogtreecommitdiffstats
path: root/slideshow/source/engine/shapes/drawinglayeranimation.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/engine/shapes/drawinglayeranimation.cxx')
-rw-r--r--slideshow/source/engine/shapes/drawinglayeranimation.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/slideshow/source/engine/shapes/drawinglayeranimation.cxx b/slideshow/source/engine/shapes/drawinglayeranimation.cxx
index b8b500936557..0e377c8b855b 100644
--- a/slideshow/source/engine/shapes/drawinglayeranimation.cxx
+++ b/slideshow/source/engine/shapes/drawinglayeranimation.cxx
@@ -910,9 +910,8 @@ std::shared_ptr<Activity> createDrawingLayerAnimActivity(
try
{
- std::shared_ptr<WakeupEvent> const pWakeupEvent(
- new WakeupEvent( rContext.mrEventQueue.getTimer(),
- rContext.mrActivitiesQueue ) );
+ auto const pWakeupEvent = std::make_shared<WakeupEvent>( rContext.mrEventQueue.getTimer(),
+ rContext.mrActivitiesQueue );
pActivity.reset( new ActivityImpl( rContext, pWakeupEvent, pDrawShape ) );
pWakeupEvent->setActivity( pActivity );
}