summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/lwpfilter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'lotuswordpro/source/filter/lwpfilter.cxx')
-rw-r--r--lotuswordpro/source/filter/lwpfilter.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwpfilter.cxx b/lotuswordpro/source/filter/lwpfilter.cxx
index 05c8159f753a..0389ee3cbaf9 100644
--- a/lotuswordpro/source/filter/lwpfilter.cxx
+++ b/lotuswordpro/source/filter/lwpfilter.cxx
@@ -106,8 +106,8 @@ using namespace OpenStormBento;
pCompressed->Seek(0);
std::unique_ptr<SvStream> aDecompressed(new SvMemoryStream(4096, 4096));
unsigned char buffer[512];
- pCompressed->Read(buffer, 16);
- aDecompressed->Write(buffer, 16);
+ pCompressed->ReadBytes(buffer, 16);
+ aDecompressed->WriteBytes(buffer, 16);
std::unique_ptr<LwpSvStream> aLwpStream(new LwpSvStream(pCompressed));
LtcBenContainer* pBentoContainer;
@@ -129,8 +129,8 @@ using namespace OpenStormBento;
nPos += 0x10;
pCompressed->Seek(nPos);
- while (sal_uInt32 iRead = pCompressed->Read(buffer, 512))
- aDecompressed->Write(buffer, iRead);
+ while (sal_uInt32 iRead = pCompressed->ReadBytes(buffer, 512))
+ aDecompressed->WriteBytes(buffer, iRead);
//transfer ownership of aDecompressed's ptr
pOutDecompressed = aDecompressed.release();