summaryrefslogtreecommitdiff
path: root/include/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-12-24 12:58:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-12-28 15:42:24 +0100
commit3bd25d5087a376e4a2e7c0c6e3d2b9c37abd0a55 (patch)
tree3343e340f68c25b7e9134a3feefafd1d0964af94 /include/filter
parentcd966aac6ecd8ce606ac3f2ccd602e467114ba3f (diff)
ofz#28912 Direct-leak in PPTStyleSheet::PPTStyleSheet
Change-Id: If6ee82bab1937599ee2908f9c610c63e505189ef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108267 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/filter')
-rw-r--r--include/filter/msfilter/svdfppt.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/filter/msfilter/svdfppt.hxx b/include/filter/msfilter/svdfppt.hxx
index b1dc364d7d57..7bacc7763f92 100644
--- a/include/filter/msfilter/svdfppt.hxx
+++ b/include/filter/msfilter/svdfppt.hxx
@@ -849,9 +849,9 @@ class SvxNumBulletItem;
struct PPTStyleSheet : public PPTNumberFormatCreator
{
PPTTextSpecInfo maTxSI;
- o3tl::enumarray<TSS_Type, PPTCharSheet*> mpCharSheet;
- o3tl::enumarray<TSS_Type, PPTParaSheet*> mpParaSheet;
- o3tl::enumarray<TSS_Type, SvxNumBulletItem*> mpNumBulletItem;
+ o3tl::enumarray<TSS_Type, std::unique_ptr<PPTCharSheet>> mpCharSheet;
+ o3tl::enumarray<TSS_Type, std::unique_ptr<PPTParaSheet>> mpParaSheet;
+ o3tl::enumarray<TSS_Type, std::unique_ptr<SvxNumBulletItem>> mpNumBulletItem;
PPTStyleSheet(
const DffRecordHeader& rSlideHd,