summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-05-05 12:06:10 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-05-05 17:20:50 +0200
commitd9468bc951e9aabba4dcc45ad102a154331d41ea (patch)
treeb262c4e4f86c1ed33876ce031b7afb94a0625389 /sw/source/filter/ww8/ww8par.hxx
parentb9130f798db68f7fb3cabc914e050b69f0db64ee (diff)
ofz: fix leak
Change-Id: I38a3056dc38997a062904c0368a34fdd405715dc Reviewed-on: https://gerrit.libreoffice.org/37282 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/filter/ww8/ww8par.hxx')
-rw-r--r--sw/source/filter/ww8/ww8par.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8par.hxx b/sw/source/filter/ww8/ww8par.hxx
index d3658d3e6bfd..a67f03f806ac 100644
--- a/sw/source/filter/ww8/ww8par.hxx
+++ b/sw/source/filter/ww8/ww8par.hxx
@@ -168,12 +168,12 @@ private:
WW8LSTInfo* GetLSTByListId( sal_uInt32 nIdLst ) const;
//the rParaSprms returns back the original word paragraph indent
//sprms which are attached to this numbering level
- bool ReadLVL(SwNumFormat& rNumFormat, SfxItemSet*& rpItemSet, sal_uInt16 nLevelStyle,
+ bool ReadLVL(SwNumFormat& rNumFormat, std::unique_ptr<SfxItemSet>& rpItemSet, sal_uInt16 nLevelStyle,
bool bSetStartNo, std::deque<bool> &rNotReallyThere, sal_uInt16 nLevel,
ww::bytes &rParaSprms);
// character attributes from GrpprlChpx
- typedef SfxItemSet* WW8aISet[nMaxLevel];
+ typedef std::unique_ptr<SfxItemSet> WW8aISet[nMaxLevel];
// character style pointer
typedef SwCharFormat* WW8aCFormat[nMaxLevel];