summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-17 10:12:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-17 10:11:59 +0000
commit88c755e37cd36ddfe6d0d651540d9f2bd8a029a6 (patch)
treeffd0b8187deaf343f10f8357e9ad3dada397fd01 /sdext/source/pdfimport/inc
parenta3bb39324e5e2cff2699e830454358ac1597ffff (diff)
new loplugin: useuniqueptr: sdext
Change-Id: Iae1dfc7f566d2f5bd1652f170218b502b5663126 Reviewed-on: https://gerrit.libreoffice.org/33205 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext/source/pdfimport/inc')
-rw-r--r--sdext/source/pdfimport/inc/pdfparse.hxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/sdext/source/pdfimport/inc/pdfparse.hxx b/sdext/source/pdfimport/inc/pdfparse.hxx
index a43bfbbb321a..d36828604229 100644
--- a/sdext/source/pdfimport/inc/pdfparse.hxx
+++ b/sdext/source/pdfimport/inc/pdfparse.hxx
@@ -26,6 +26,7 @@
#include <unordered_map>
#include <vector>
+#include <memory>
namespace pdfparse
{
@@ -50,7 +51,7 @@ public:
private:
friend struct PDFEntry;
- EmitImplData* m_pImplData;
+ std::unique_ptr<EmitImplData> m_pImplData;
};
struct PDFEntry
@@ -227,17 +228,13 @@ struct PDFFileImplData;
struct PDFFile : public PDFContainer
{
private:
- mutable PDFFileImplData* m_pData;
+ mutable std::unique_ptr<PDFFileImplData> m_pData;
PDFFileImplData* impl_getData() const;
public:
unsigned int m_nMajor; // PDF major
unsigned int m_nMinor; // PDF minor
- PDFFile()
- : PDFContainer(),
- m_pData( nullptr ),
- m_nMajor( 0 ), m_nMinor( 0 )
- {}
+ PDFFile();
virtual ~PDFFile() override;
virtual bool emit( EmitContext& rWriteContext ) const override;