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/lwpcontent.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/lwpcontent.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpcontent.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lotuswordpro/source/filter/lwpcontent.cxx b/lotuswordpro/source/filter/lwpcontent.cxx index 339ab786001b..2296ef9cefa0 100644 --- a/lotuswordpro/source/filter/lwpcontent.cxx +++ b/lotuswordpro/source/filter/lwpcontent.cxx @@ -80,6 +80,7 @@ void LwpHeadContent::Read() LwpContent::LwpContent(LwpObjectHeader &objHdr, LwpSvStream* pStrm) : LwpDLNFVList(objHdr, pStrm) {} + void LwpContent::Read() { LwpDLNFVList::Read(); @@ -87,9 +88,7 @@ void LwpContent::Read() LwpObjectStream* pStrm = m_pObjStrm; m_LayoutsWithMe.Read(pStrm); - //sal_uInt16 nFlagsSkip; - //pStrm->QuickRead(&nFlagsSkip, sizeof(nFlagsSkip)); - pStrm->QuickRead(&m_nFlags, sizeof(m_nFlags)); + m_nFlags = pStrm->QuickReaduInt16(); m_nFlags &= ~(CF_CHANGED | CF_DISABLEVALUECHECKING); //LwpAtomHolder ClassName; //ClassName.Read(pStrm); @@ -113,8 +112,7 @@ void LwpContent::Read() } else { - sal_uInt8 HasNotify; - pStrm->QuickRead(&HasNotify, sizeof(HasNotify)); + sal_uInt8 HasNotify = pStrm->QuickReaduInt8(); if(HasNotify) { SkipID.ReadIndexed(pStrm); |