summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8glsy.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-06 10:31:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-06 15:19:24 +0200
commitaff5cd7ed5d1cbe05975365d7aa9aff74fe5a861 (patch)
treed7d9fd50eb0cc00c57e813a64f3976008f02ecaa /sw/source/filter/ww8/ww8glsy.hxx
parent29277d4adf6e37cf201f11f3de704197feae494a (diff)
ofz: fix some leaks
Change-Id: Ia5961336fc399b079814cbcf66d47a465f5ba789 Reviewed-on: https://gerrit.libreoffice.org/39638 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/filter/ww8/ww8glsy.hxx')
-rw-r--r--sw/source/filter/ww8/ww8glsy.hxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/ww8glsy.hxx b/sw/source/filter/ww8/ww8glsy.hxx
index e617fa0083d1..9018a806781e 100644
--- a/sw/source/filter/ww8/ww8glsy.hxx
+++ b/sw/source/filter/ww8/ww8glsy.hxx
@@ -60,15 +60,17 @@ class WW8Glossary
public:
WW8Glossary( tools::SvRef<SotStorageStream> &refStrm, sal_uInt8 nVersion, SotStorage *pStg);
bool Load( SwTextBlocks &rBlocks, bool bSaveRelFile );
- WW8GlossaryFib *GetFib() {
- return pGlossary.get();
+ std::shared_ptr<WW8GlossaryFib>& GetFib()
+ {
+ return xGlossary;
}
- sal_uInt16 GetNoStrings() const {
+ sal_uInt16 GetNoStrings() const
+ {
return nStrings;
}
private:
- std::unique_ptr<WW8GlossaryFib> pGlossary;
+ std::shared_ptr<WW8GlossaryFib> xGlossary;
tools::SvRef<SotStorageStream> xTableStream;
tools::SvRef<SotStorageStream> &rStrm;
tools::SvRef<SotStorage> xStg;