From 109ea4752b734683483aef5154d8debca2d300a3 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Fri, 9 Sep 2016 10:25:31 +0200 Subject: use std::shared_ptr Change-Id: Ib285d2445077a0263a09b36bf1a6fa1fe7f59496 --- xmloff/inc/animationimport.hxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'xmloff/inc') diff --git a/xmloff/inc/animationimport.hxx b/xmloff/inc/animationimport.hxx index afe509c49b9f..cea9782d64d8 100644 --- a/xmloff/inc/animationimport.hxx +++ b/xmloff/inc/animationimport.hxx @@ -20,6 +20,8 @@ #ifndef INCLUDED_XMLOFF_INC_ANIMATIONIMPORT_HXX #define INCLUDED_XMLOFF_INC_ANIMATIONIMPORT_HXX +#include + #include #include @@ -31,7 +33,7 @@ class AnimationsImportHelperImpl; class AnimationNodeContext : public SvXMLImportContext { - AnimationsImportHelperImpl* mpHelper; + std::shared_ptr mpHelper; bool mbRootContext; css::uno::Reference< css::animations::XAnimationNode > mxNode; @@ -45,8 +47,7 @@ public: sal_uInt16 nPrfx, const OUString& rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList, - AnimationsImportHelperImpl* mpImpl = nullptr ); - virtual ~AnimationNodeContext(); + std::shared_ptr pImpl = nullptr ); virtual void StartElement( const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override; -- cgit v1.2.3