diff options
-rw-r--r-- | sw/inc/unodraw.hxx | 4 | ||||
-rw-r--r-- | sw/source/core/unocore/unodraw.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/inc/unodraw.hxx b/sw/inc/unodraw.hxx index b10ab9b1ac01..c6cbed24f270 100644 --- a/sw/inc/unodraw.hxx +++ b/sw/inc/unodraw.hxx @@ -134,7 +134,7 @@ class SwXShape : public SwXShapeBaseClass, const SfxItemPropertySet* m_pPropSet; const SfxItemPropertyMapEntry* m_pPropertyMapEntries; - SwShapeDescriptor_Impl* pImpl; + std::unique_ptr<SwShapeDescriptor_Impl> pImpl; bool m_bDescriptor; @@ -238,7 +238,7 @@ public: virtual void SAL_CALL setSize( const css::awt::Size& aSize ) override; virtual OUString SAL_CALL getShapeType( ) override; - SwShapeDescriptor_Impl* GetDescImpl() {return pImpl;} + SwShapeDescriptor_Impl* GetDescImpl() {return pImpl.get();} SwFrameFormat* GetFrameFormat() const { return const_cast<SwFrameFormat*>(static_cast<const SwFrameFormat*>(GetRegisteredIn())); } const css::uno::Reference< css::uno::XAggregation >& GetAggregationInterface() {return xShapeAgg;} diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx index a9f376f62d67..3919fc2af1ef 100644 --- a/sw/source/core/unocore/unodraw.cxx +++ b/sw/source/core/unocore/unodraw.cxx @@ -984,7 +984,7 @@ SwXShape::~SwXShape() uno::Reference< uno::XInterface > xRef; xShapeAgg->setDelegator(xRef); } - delete pImpl; + pImpl.reset(); EndListeningAll(); } |