summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/lwpprtinfo.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/lwpprtinfo.cxx
parent79787787d6ca1dd5a0c1aacfc401199771ce2c63 (diff)
fix up endianness of lowhanging QuickReads
Diffstat (limited to 'lotuswordpro/source/filter/lwpprtinfo.cxx')
-rw-r--r--lotuswordpro/source/filter/lwpprtinfo.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/lotuswordpro/source/filter/lwpprtinfo.cxx b/lotuswordpro/source/filter/lwpprtinfo.cxx
index 75adc1a8297b..31d95a09555e 100644
--- a/lotuswordpro/source/filter/lwpprtinfo.cxx
+++ b/lotuswordpro/source/filter/lwpprtinfo.cxx
@@ -72,12 +72,10 @@ void LwpPrinterInfo::Read(LwpObjectStream* pStrm)
*/
void LwpPrinterInfo::Skip(LwpObjectStream *pStrm)
{
- sal_uInt16 platform;
- pStrm->QuickRead(&platform, sizeof(platform));
+ /*sal_uInt16 platform =*/ pStrm->QuickReaduInt16();
//Skip the size and the buffer
- sal_uInt32 size;
- pStrm->QuickRead(&size, sizeof(size));
+ sal_uInt32 size = pStrm->QuickReaduInt32();
pStrm->SeekRel(static_cast<sal_uInt16>(size));
//Skip others printer infor
@@ -93,8 +91,7 @@ void LwpPrinterInfo::Skip(LwpObjectStream *pStrm)
toSkip.Skip(pStrm);
}
- sal_uInt16 count;
- pStrm->QuickRead(&count, sizeof(count));
+ sal_uInt16 count = pStrm->QuickReaduInt16();
//Skip each selected division
LwpAtomHolder toSkip;
while(count--)