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/lwpdivinfo.cxx | |
parent | 79787787d6ca1dd5a0c1aacfc401199771ce2c63 (diff) |
fix up endianness of lowhanging QuickReads
Diffstat (limited to 'lotuswordpro/source/filter/lwpdivinfo.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpdivinfo.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwpdivinfo.cxx b/lotuswordpro/source/filter/lwpdivinfo.cxx index 0728b1f0e088..03154277f09b 100644 --- a/lotuswordpro/source/filter/lwpdivinfo.cxx +++ b/lotuswordpro/source/filter/lwpdivinfo.cxx @@ -90,7 +90,7 @@ void LwpDivInfo::Read() } m_LayoutID.ReadIndexed(m_pObjStrm); - m_pObjStrm->QuickRead(&m_nFlags, sizeof(m_nFlags)); + m_nFlags = m_pObjStrm->QuickReaduInt16(); if (LwpFileHeader::m_nFileRevision < 0x0010) // In 98, graphic links count too { if ((m_nFlags & DI_ANYOLEDDELINKS) == 0) @@ -102,15 +102,14 @@ void LwpDivInfo::Read() m_ClassName.Read(m_pObjStrm); m_InitialLayoutID.ReadIndexed(m_pObjStrm); - m_pObjStrm->QuickRead(&m_nPageNoStyle, sizeof(m_nPageNoStyle)); + m_nPageNoStyle = m_pObjStrm->QuickReaduInt16(); m_TabColor.Read(m_pObjStrm); // read filler page stuff m_FillerPageTextID.ReadIndexed(m_pObjStrm); // read external file object stuff - sal_uInt16 type; - m_pObjStrm->QuickRead(&type, sizeof(type)); + /*sal_uInt16 type =*/ m_pObjStrm->QuickReaduInt16(); //cpExternalFile = LNULL; assert(type==0); |