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/lwppagehint.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/lwppagehint.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwppagehint.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lotuswordpro/source/filter/lwppagehint.cxx b/lotuswordpro/source/filter/lwppagehint.cxx index ef61671024c4..166f0f5dc657 100644 --- a/lotuswordpro/source/filter/lwppagehint.cxx +++ b/lotuswordpro/source/filter/lwppagehint.cxx @@ -95,20 +95,20 @@ void LwpPageHint::Read() m_PageLayout.ReadIndexed(m_pObjStrm); //m_ContentHints.ReadIndexed(m_pObjStrm); m_ContentHints.Read(m_pObjStrm); - m_pObjStrm->QuickRead(&m_nLastFootnoteSeen,sizeof(m_nLastFootnoteSeen)); - m_pObjStrm->QuickRead(&m_nLastFootnoteProcessed,sizeof(m_nLastFootnoteProcessed)); - m_pObjStrm->QuickRead(&m_nFlags,sizeof(m_nFlags)); - m_pObjStrm->QuickRead(&m_nPageNumber,sizeof(m_nPageNumber)); - m_pObjStrm->QuickRead(&m_nNumberStyle,sizeof(m_nNumberStyle)); + m_nLastFootnoteSeen = m_pObjStrm->QuickReaduInt16(); + m_nLastFootnoteProcessed = m_pObjStrm->QuickReaduInt16(); + m_nFlags = m_pObjStrm->QuickReaduInt16(); + m_nPageNumber = m_pObjStrm->QuickReaduInt16(); + m_nNumberStyle = m_pObjStrm->QuickReaduInt16(); m_BeforeText.Read(m_pObjStrm); m_AfterText.Read(m_pObjStrm); - m_pObjStrm->QuickRead(&m_nNumberFlags,sizeof(m_nNumberFlags)); - m_pObjStrm->QuickRead(&m_nRenderedPageNumber,sizeof(m_nRenderedPageNumber)); + m_nNumberFlags = m_pObjStrm->QuickReaduInt8(); + m_nRenderedPageNumber = m_pObjStrm->QuickReaduInt16(); m_CurrentSection.ReadIndexed(m_pObjStrm); - m_pObjStrm->QuickRead(&m_nCurrentSectionPage,sizeof(m_nCurrentSectionPage)); + m_nCurrentSectionPage = m_pObjStrm->QuickReaduInt16(); //m_FootnoteSeen.ReadIndexed(m_pObjStrm); m_FootnoteSeen.Read(m_pObjStrm); - m_pObjStrm->QuickRead(&m_nLayoutPageNumber,sizeof(m_nLayoutPageNumber)); + m_nLayoutPageNumber = m_pObjStrm->QuickReaduInt16(); m_pObjStrm->SkipExtra(); } |