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/lwpsection.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/lwpsection.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpsection.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/lwpsection.cxx b/lotuswordpro/source/filter/lwpsection.cxx index 52812b9a079c..d8b991c66ac0 100644 --- a/lotuswordpro/source/filter/lwpsection.cxx +++ b/lotuswordpro/source/filter/lwpsection.cxx @@ -103,7 +103,7 @@ LwpSection::~LwpSection() void LwpSection::Read() { LwpOrderedObject::Read(); - m_pObjStrm->QuickRead(&m_Flags, sizeof(m_Flags)); + m_Flags = m_pObjStrm->QuickReaduInt16(); m_PageLayout.ReadIndexed(m_pObjStrm); m_Color.Read(m_pObjStrm); m_AtomHolder.Read(m_pObjStrm); @@ -138,8 +138,8 @@ void LwpIndexSection::Read() m_ParentName.Read(m_pObjStrm); m_DivisionName.Read(m_pObjStrm); m_SectionName.Read(m_pObjStrm); - m_pObjStrm->QuickRead(&m_nForm, sizeof(m_nForm)); - m_pObjStrm->QuickRead(&m_nFlags, sizeof(m_nFlags)); + m_nForm = m_pObjStrm->QuickReaduInt16(); + m_nFlags = m_pObjStrm->QuickReaduInt16(); m_pObjStrm->SkipExtra(); } |