diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-08 21:04:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-13 09:53:04 +0200 |
commit | 3b9b4ca5d3aa15d51d6b54a5f5f23967f1666889 (patch) | |
tree | a96a8ed89ba8c20d0e196c251d10c9b3813a634e /hwpfilter/source/hpara.h | |
parent | 25d2b02f452d7c27d02a93f5ad26d0b3834c0d84 (diff) |
ofz#1062 ensure cshape lifecycle matches expectations
Change-Id: I586e9b3546516a0f05d86b2f7dd93e7c292a6795
Reviewed-on: https://gerrit.libreoffice.org/36298
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'hwpfilter/source/hpara.h')
-rw-r--r-- | hwpfilter/source/hpara.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hwpfilter/source/hpara.h b/hwpfilter/source/hpara.h index 6496eae80f70..1385f12ed698 100644 --- a/hwpfilter/source/hpara.h +++ b/hwpfilter/source/hpara.h @@ -103,11 +103,11 @@ class DLLEXPORT HWPPara */ unsigned long ctrlflag; unsigned char pstyno; - CharShape cshape; /* When characters are all the same shape */ + std::shared_ptr<CharShape> cshape; /* When characters are all the same shape */ ParaShape pshape; /* if reuse flag is 0, */ - LineInfo *linfo; - CharShape *cshapep; + std::unique_ptr<LineInfo[]> linfo; + std::vector<std::shared_ptr<CharShape>> cshapep; /** * Box object list */ |