From d4ed6ff5c1d0638dd46d3a2272c5c54b9700551f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 24 Jan 2020 08:30:34 +0200 Subject: loplugin:makeshared in hwpfilter..i18npool Change-Id: I2e757043215164df173c89e21cebe2f4c9c05de9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87321 Tested-by: Jenkins Reviewed-by: Noel Grandin --- hwpfilter/source/hinfo.cxx | 2 +- hwpfilter/source/hpara.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'hwpfilter') 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()) , 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()) + , pshape(std::make_shared()) { 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(); memset(cshapep[ii].get(), 0, sizeof(CharShape)); unsigned char same_cshape(0); -- cgit