summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-05-21 23:14:16 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-05-21 23:14:16 +0100
commit79787787d6ca1dd5a0c1aacfc401199771ce2c63 (patch)
tree541f482675e7a13919aee8a1d707e135f0b1be18 /lotuswordpro
parent5672dcf01a156997612da8f1ddecda3c13419689 (diff)
can't correctly use auto_ptr on new[] allocated memory
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwptblformula.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwptblformula.cxx b/lotuswordpro/source/filter/lwptblformula.cxx
index e7ef40a48df3..2eca962cceab 100644
--- a/lotuswordpro/source/filter/lwptblformula.cxx
+++ b/lotuswordpro/source/filter/lwptblformula.cxx
@@ -69,6 +69,8 @@
#include "lwptablelayout.hxx"
+#include <boost/scoped_array.hpp>
+
//////////////////////////////////////////////////////////////////
LwpFormulaInfo::LwpFormulaInfo(LwpObjectHeader &objHdr, LwpSvStream* pStrm)
: LwpCellList(objHdr, pStrm)
@@ -120,7 +122,7 @@ sal_Bool LwpFormulaInfo::ReadText()
m_pObjStrm->QuickReadInt16(); //Disk Size
nStrLen = m_pObjStrm->QuickReadInt16();
- auto_ptr<char> pBuf(new char[nStrLen+1]);
+ boost::scoped_array<char> pBuf(new char[nStrLen+1]);
m_pObjStrm->QuickRead( pBuf.get(), nStrLen );
*(pBuf.get()+nStrLen)='\0';
String aText;