From 5a243f140975167aa5c42c95b30edb1cdb1ea639 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 24 Jul 2012 11:36:17 +0200 Subject: hwpfilter: improve text import and error handling Change-Id: Ib74b96200c9d57f55fc0d32b638601c64e7eb6fe --- hwpfilter/source/hstyle.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'hwpfilter/source/hstyle.cxx') 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 + #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(nstyles); if (!style) return false; -- cgit