summaryrefslogtreecommitdiff
path: root/hwpfilter/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-24 08:30:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-24 08:25:51 +0100
commitd4ed6ff5c1d0638dd46d3a2272c5c54b9700551f (patch)
treee6b0fd4a2603001c6eec209c5359f621a64cea17 /hwpfilter/source
parenta41f9b3ae91101414a7ba2f651f735bc71f69f81 (diff)
loplugin:makeshared in hwpfilter..i18npool
Change-Id: I2e757043215164df173c89e21cebe2f4c9c05de9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87321 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'hwpfilter/source')
-rw-r--r--hwpfilter/source/hinfo.cxx2
-rw-r--r--hwpfilter/source/hpara.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/hwpfilter/source/hinfo.cxx b/hwpfilter/source/hinfo.cxx
index 025e54b7a6de..bc1d61021d99 100644
--- a/hwpfilter/source/hinfo.cxx
+++ b/hwpfilter/source/hinfo.cxx
@@ -197,7 +197,7 @@ ParaShape::ParaShape()
, pspacing_next(0)
, condense(0)
, arrange_type(0)
- , xColdef(new ColumnDef)
+ , xColdef(std::make_shared<ColumnDef>())
, shade(0)
, outline(0)
, outline_continue(0)
diff --git a/hwpfilter/source/hpara.cxx b/hwpfilter/source/hpara.cxx
index 7363a4b91cf1..415c8e984eb3 100644
--- a/hwpfilter/source/hpara.cxx
+++ b/hwpfilter/source/hpara.cxx
@@ -75,8 +75,8 @@ HWPPara::HWPPara()
, etcflag(0)
, ctrlflag(0)
, pstyno(0)
- , cshape(new CharShape)
- , pshape(new ParaShape)
+ , cshape(std::make_shared<CharShape>())
+ , pshape(std::make_shared<ParaShape>())
{
memset(cshape.get(), 0, sizeof(CharShape));
}
@@ -144,7 +144,7 @@ bool HWPPara::Read(HWPFile & hwpf, unsigned char flag)
for (ii = 0; ii < nch; ii++)
{
- cshapep[ii].reset(new CharShape);
+ cshapep[ii] = std::make_shared<CharShape>();
memset(cshapep[ii].get(), 0, sizeof(CharShape));
unsigned char same_cshape(0);