diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-11 14:19:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-23 06:59:17 +0000 |
commit | 98e4013c22c4ce63090a575e698cc2af82925e6b (patch) | |
tree | 571d99c39420e929cd43e0365354da1aced03e68 /hwpfilter/source/hwpreader.hxx | |
parent | 2d1cecf02b34d855c8d64e3271bffbcbf9bf4138 (diff) |
new loplugin useuniqueptr
Change-Id: Ic7a8b32887c968d86568e4cfad7ddd1f4da7c73f
Reviewed-on: https://gerrit.libreoffice.org/33339
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'hwpfilter/source/hwpreader.hxx')
-rw-r--r-- | hwpfilter/source/hwpreader.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hwpfilter/source/hwpreader.hxx b/hwpfilter/source/hwpreader.hxx index d1dbd16d9935..c44a0c37abd6 100644 --- a/hwpfilter/source/hwpreader.hxx +++ b/hwpfilter/source/hwpreader.hxx @@ -19,6 +19,7 @@ #ifndef INCLUDED_HWPFILTER_SOURCE_HWPREADER_HXX #define INCLUDED_HWPFILTER_SOURCE_HWPREADER_HXX + #include <errno.h> #include <stdio.h> #include <string.h> @@ -40,6 +41,7 @@ #include <cppuhelper/implbase.hxx> #include <cppuhelper/supportsservice.hxx> #include <cppuhelper/weak.hxx> +#include <memory> using namespace ::cppu; using namespace ::com::sun::star::lang; @@ -92,7 +94,7 @@ private: Reference< XDocumentHandler > m_rxDocumentHandler; rtl::Reference<AttributeListImpl> mxList; HWPFile hwpfile; - HwpReaderPrivate *d; + std::unique_ptr<HwpReaderPrivate> d; private: /* -------- Document Parsing --------- */ void makeMeta(); |