summaryrefslogtreecommitdiff
path: root/package/source/xstor/xstorage.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-02-22 09:30:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-02-22 13:14:18 +0000
commit988ac73e57b7e7f171fb2543de90a9afc2aa3289 (patch)
tree3412f8804f904f2507f96ffeb270428ef7a9e8f5 /package/source/xstor/xstorage.hxx
parentaf8c0696e56395d48f8d8d75a37ced1c58a5be17 (diff)
use std::unique_ptr
Change-Id: I11a58aa38f931c7912e2e5ac6df46f98e6bb681e Reviewed-on: https://gerrit.libreoffice.org/34539 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'package/source/xstor/xstorage.hxx')
-rw-r--r--package/source/xstor/xstorage.hxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/package/source/xstor/xstorage.hxx b/package/source/xstor/xstorage.hxx
index 6bb5bc65919b..568caf3b90c2 100644
--- a/package/source/xstor/xstorage.hxx
+++ b/package/source/xstor/xstorage.hxx
@@ -85,12 +85,11 @@ struct SotElement_Impl
bool m_bIsInserted;
bool m_bIsStorage;
- OStorage_Impl* m_pStorage;
- OWriteStream_Impl* m_pStream;
+ std::unique_ptr<OStorage_Impl> m_xStorage;
+ std::unique_ptr<OWriteStream_Impl> m_xStream;
public:
- SotElement_Impl( const OUString& rName, bool bStor, bool bNew );
- ~SotElement_Impl();
+ SotElement_Impl(const OUString& rName, bool bStor, bool bNew);
};
typedef ::std::list< SotElement_Impl* > SotElementList_Impl;