summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/lwpprtinfo.cxx
diff options
context:
space:
mode:
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--)