summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8glsy.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-18 09:46:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-18 11:19:20 +0000
commit2266b436698f28f3869a025f5aa4a356da04a4f1 (patch)
treea44156984d68252fc5ca4d0088ea5f0a37546e1f /sw/source/filter/ww8/ww8glsy.hxx
parentfeb3b3dbda7af2ba7f2d36dd9174a30912d9cf63 (diff)
new loplugin: useuniqueptr: sw part 2
Change-Id: Ifa901f75072d8474d8a97ca57c2b5b48d8c6b79d Reviewed-on: https://gerrit.libreoffice.org/33250 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/ww8/ww8glsy.hxx')
-rw-r--r--sw/source/filter/ww8/ww8glsy.hxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/ww8glsy.hxx b/sw/source/filter/ww8/ww8glsy.hxx
index abd9518015ef..117e66d3cb8a 100644
--- a/sw/source/filter/ww8/ww8glsy.hxx
+++ b/sw/source/filter/ww8/ww8glsy.hxx
@@ -59,12 +59,11 @@ class WW8Glossary
public:
WW8Glossary( tools::SvRef<SotStorageStream> &refStrm, sal_uInt8 nVersion, SotStorage *pStg);
bool Load( SwTextBlocks &rBlocks, bool bSaveRelFile );
- ~WW8Glossary() { delete pGlossary; }
- WW8GlossaryFib *GetFib() { return pGlossary; }
+ WW8GlossaryFib *GetFib() { return pGlossary.get(); }
sal_uInt16 GetNoStrings() const { return nStrings; }
private:
- WW8GlossaryFib *pGlossary;
+ std::unique_ptr<WW8GlossaryFib> pGlossary;
tools::SvRef<SotStorageStream> xTableStream;
tools::SvRef<SotStorageStream> &rStrm;
tools::SvRef<SotStorage> xStg;