diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-28 12:49:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-28 12:55:02 +0100 |
commit | 6394fd4a1d56af4afab4f9683d5a2087a32588e6 (patch) | |
tree | 50f5f3719e583b130a97939a233e9b870d6477ab /hwpfilter/source/hwpread.cxx | |
parent | fix indent (diff) | |
download | core-6394fd4a1d56af4afab4f9683d5a2087a32588e6.tar.gz core-6394fd4a1d56af4afab4f9683d5a2087a32588e6.zip |
convert to std::vector
Change-Id: I315755d49df5d29c6c7075237b7401f16c89b449
Diffstat (limited to 'hwpfilter/source/hwpread.cxx')
-rw-r--r-- | hwpfilter/source/hwpread.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/hwpfilter/source/hwpread.cxx b/hwpfilter/source/hwpread.cxx index ca2a90905e50..1a96eaa29046 100644 --- a/hwpfilter/source/hwpread.cxx +++ b/hwpfilter/source/hwpread.cxx @@ -295,10 +295,7 @@ bool TxtBox::Read(HWPFile & hwpf) } if (ncell == 1) style.cell = &cell[0]; - plists = ::comphelper::newArray_null< std::list< HWPPara* > >(ncell); - if (!plists) { - return hwpf.SetState(HWP_InvalidFileFormat); - } + plists.resize(ncell); for (ii = 0; ii < ncell; ii++) hwpf.ReadParaList(plists[ii]); // caption |