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/lwpatomholder.cxx | |
parent | 79787787d6ca1dd5a0c1aacfc401199771ce2c63 (diff) |
fix up endianness of lowhanging QuickReads
Diffstat (limited to 'lotuswordpro/source/filter/lwpatomholder.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpatomholder.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lotuswordpro/source/filter/lwpatomholder.cxx b/lotuswordpro/source/filter/lwpatomholder.cxx index 986f19169b5e..147571e3a58e 100644 --- a/lotuswordpro/source/filter/lwpatomholder.cxx +++ b/lotuswordpro/source/filter/lwpatomholder.cxx @@ -72,9 +72,8 @@ void LwpAtomHolder::Read(LwpObjectStream *pStrm) { //Refered to lwp: file40.cpp, QuickReadAtomHolder() - sal_uInt16 len, diskSize; - pStrm->QuickRead(&diskSize, sizeof(diskSize)); - pStrm->QuickRead(&len, sizeof(len)); + sal_uInt16 diskSize = pStrm->QuickReaduInt16(); + sal_uInt16 len = pStrm->QuickReaduInt16(); if (len == 0 || diskSize == 0) { m_nAtom = BAD_ATOM; @@ -92,8 +91,7 @@ void LwpAtomHolder::Read(LwpObjectStream *pStrm) */ void LwpAtomHolder::Skip(LwpObjectStream *pStrm) { - sal_uInt16 holdersize; - pStrm->QuickRead(&holdersize, sizeof(holdersize)); + sal_uInt16 holdersize = pStrm->QuickReaduInt16(); pStrm->SeekRel(holdersize); m_nAtom = m_nAssocAtom = BAD_ATOM; } |