diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-05-22 16:38:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-05-22 16:38:54 +0100 |
commit | bd32449e0b8016e9d4e2b14848780f4a641394f2 (patch) | |
tree | 48d984fd0ff6652acbfbd5e15b3c03584e6a0a67 /lotuswordpro/source/filter/lwptblformula.cxx | |
parent | can't correctly use auto_ptr on new[] allocated memory (diff) | |
download | core-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.cxx | 6 |
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 ); |