summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/lwpcontent.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-05-22 16:38:54 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-05-22 16:38:54 +0100
commitbd32449e0b8016e9d4e2b14848780f4a641394f2 (patch)
tree48d984fd0ff6652acbfbd5e15b3c03584e6a0a67 /lotuswordpro/source/filter/lwpcontent.cxx
parentcan't correctly use auto_ptr on new[] allocated memory (diff)
downloadcore-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.cxx8
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);