summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/lwptblformula.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-05-22 16:38:54 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-05-22 16:38:54 +0100
commitbd32449e0b8016e9d4e2b14848780f4a641394f2 (patch)
tree48d984fd0ff6652acbfbd5e15b3c03584e6a0a67 /lotuswordpro/source/filter/lwptblformula.cxx
parentcan't correctly use auto_ptr on new[] allocated memory (diff)
downloadcore-bd32449e0b8016e9d4e2b14848780f4a641394f2.tar.gz
core-bd32449e0b8016e9d4e2b14848780f4a641394f2.zip
fix up endianness of lowhanging QuickReads
Diffstat (limited to 'lotuswordpro/source/filter/lwptblformula.cxx')
-rw-r--r--lotuswordpro/source/filter/lwptblformula.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwptblformula.cxx b/lotuswordpro/source/filter/lwptblformula.cxx
index 2eca962cceab..55082cbefeb5 100644
--- a/lotuswordpro/source/filter/lwptblformula.cxx
+++ b/lotuswordpro/source/filter/lwptblformula.cxx
@@ -102,8 +102,7 @@ LwpFormulaInfo::~LwpFormulaInfo()
*/
sal_Bool LwpFormulaInfo::ReadConst()
{
- double Constant;
- m_pObjStrm->QuickRead(&Constant, sizeof(Constant));
+ double Constant = m_pObjStrm->QuickReadDouble();
m_aStack.push_back( new LwpFormulaConst(Constant) );
@@ -118,9 +117,8 @@ sal_Bool LwpFormulaInfo::ReadConst()
*/
sal_Bool LwpFormulaInfo::ReadText()
{
- sal_uInt16 nStrLen;
m_pObjStrm->QuickReadInt16(); //Disk Size
- nStrLen = m_pObjStrm->QuickReadInt16();
+ sal_uInt16 nStrLen = m_pObjStrm->QuickReadInt16();
boost::scoped_array<char> pBuf(new char[nStrLen+1]);
m_pObjStrm->QuickRead( pBuf.get(), nStrLen );