From 09d56ba6d907199b124929272db9b5f61e0bb2d9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 24 Jan 2020 08:31:14 +0200 Subject: loplugin:makeshared in oox Change-Id: I6502e7be4881834b143ec7207c432881b2ae263c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87322 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/oox/ppt/animationspersist.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/oox/ppt/animationspersist.hxx') diff --git a/include/oox/ppt/animationspersist.hxx b/include/oox/ppt/animationspersist.hxx index cd18b9101615..aa808b4908fc 100644 --- a/include/oox/ppt/animationspersist.hxx +++ b/include/oox/ppt/animationspersist.hxx @@ -98,7 +98,7 @@ namespace oox { namespace ppt { static css::uno::Any convertList(const SlidePersistPtr & pSlide, const AnimationConditionList & l); AnimTargetElementPtr & getTarget() - { if(!mpTarget) mpTarget.reset( new AnimTargetElement ); return mpTarget; } + { if(!mpTarget) mpTarget = std::make_shared(); return mpTarget; } css::uno::Any maValue; sal_Int32 mnType; private: -- cgit