diff options
author | Michael Stahl <mst@openoffice.org> | 2012-07-24 11:36:17 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-07-24 11:37:41 +0200 |
commit | 5a243f140975167aa5c42c95b30edb1cdb1ea639 (patch) | |
tree | d0f3d0512c06692c7e818cf20288e2514e4c736b /hwpfilter/source/hstyle.cxx | |
parent | e5762c8488e233ac7de394d631202d452b1c92a4 (diff) |
hwpfilter: improve text import and error handling
Change-Id: Ib74b96200c9d57f55fc0d32b638601c64e7eb6fe
Diffstat (limited to 'hwpfilter/source/hstyle.cxx')
-rw-r--r-- | hwpfilter/source/hstyle.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hwpfilter/source/hstyle.cxx b/hwpfilter/source/hstyle.cxx index 1e1a5599ae05..25d78948d2d6 100644 --- a/hwpfilter/source/hstyle.cxx +++ b/hwpfilter/source/hstyle.cxx @@ -19,6 +19,8 @@ #include "precompile.h" +#include <comphelper/newarray.hxx> + #include "hwplib.h" #include "hwpfile.h" #include "hstyle.h" @@ -123,7 +125,7 @@ bool HWPStyle::Read(HWPFile & hwpf) ParaShape pshape; hwpf.Read2b(&nstyles, 1); - style = new StyleData[nstyles]; + style = ::comphelper::newArray_null<StyleData>(nstyles); if (!style) return false; |