diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-24 13:21:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-25 07:06:10 +0100 |
commit | cee62b1068775b7d0bcd2875e9789c8c36c22057 (patch) | |
tree | c093300a02cc6dc5db73ba0a51067cc480ddfdf5 /slideshow/source/engine/shapes/intrinsicanimationactivity.cxx | |
parent | a46e768810e82abaf98e5cef02c697c718877974 (diff) |
loplugin:makeshared in slideshow
Change-Id: I87dead1ed09aa50c939c03ae8ed3faf9300a8b4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87354
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'slideshow/source/engine/shapes/intrinsicanimationactivity.cxx')
-rw-r--r-- | slideshow/source/engine/shapes/intrinsicanimationactivity.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/slideshow/source/engine/shapes/intrinsicanimationactivity.cxx b/slideshow/source/engine/shapes/intrinsicanimationactivity.cxx index de0bc4e5a2ea..3fe1d59ce8d7 100644 --- a/slideshow/source/engine/shapes/intrinsicanimationactivity.cxx +++ b/slideshow/source/engine/shapes/intrinsicanimationactivity.cxx @@ -118,7 +118,7 @@ namespace slideshow maContext( rContext ), mpDrawShape( rDrawShape ), mpWakeupEvent( rWakeupEvent ), - mpListener( new IntrinsicAnimationListener(*this) ), + mpListener( std::make_shared<IntrinsicAnimationListener>(*this) ), maTimeouts( rTimeouts ), mnCurrIndex(0), mnNumLoops(nNumLoops), @@ -240,12 +240,11 @@ namespace slideshow const ::std::vector<double>& rTimeouts, sal_uInt32 nNumLoops) { - return ActivitySharedPtr( - new IntrinsicAnimationActivity(rContext, + return std::make_shared<IntrinsicAnimationActivity>(rContext, rDrawShape, rWakeupEvent, rTimeouts, - nNumLoops) ); + nNumLoops); } } } |