summaryrefslogtreecommitdiff
path: root/package/inc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2017-01-11 19:39:25 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2017-01-11 19:42:24 -0500
commitf7c9ecaac9017e94e1dbcd5295b4d6fa3a33948f (patch)
treebb7b5b1ebb02cee72c085a7f04d0494f312628e0 /package/inc
parente5dc4ab7a023b003d312ea6f12e6473599993335 (diff)
Use std::unique_ptr for the ZipFile instance.
Change-Id: Ifac7a9e29c8cf0afcf44a82db608ba3c48499ca1
Diffstat (limited to 'package/inc')
-rw-r--r--package/inc/ZipPackage.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/inc/ZipPackage.hxx b/package/inc/ZipPackage.hxx
index 2856e42665eb..6a3ac01a88bd 100644
--- a/package/inc/ZipPackage.hxx
+++ b/package/inc/ZipPackage.hxx
@@ -36,6 +36,7 @@
#include <osl/file.h>
#include <mutexholder.hxx>
#include <vector>
+#include <memory>
class ZipOutputStream;
class ZipPackageFolder;
@@ -97,7 +98,7 @@ protected:
css::uno::Reference < css::io::XSeekable > m_xContentSeek;
const css::uno::Reference < css::uno::XComponentContext > m_xContext;
- ZipFile *m_pZipFile;
+ std::unique_ptr<ZipFile> m_pZipFile;
bool isLocalFile() const;