diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-06-03 14:45:59 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-06-06 18:09:11 +0000 |
commit | 62d270116bf34778bf581f21b27fa9cdbff7de0e (patch) | |
tree | 0402df0506ab8f6825ef497f27426f01d2e01850 /oox | |
parent | d0bc637426060593046c8d3a4d01d0b05b052cc5 (diff) |
tools: rename SvStream::Read/Write to ReadBytes/WriteBytes
Change-Id: Ib788a30d413436aa03f813aa2fddcbc4d6cd2f9a
Reviewed-on: https://gerrit.libreoffice.org/25972
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/vmlexport.cxx | 8 | ||||
-rw-r--r-- | oox/source/ole/vbaexport.cxx | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/oox/source/export/vmlexport.cxx b/oox/source/export/vmlexport.cxx index 8cad39ebfe0c..b58f1adae669 100644 --- a/oox/source/export/vmlexport.cxx +++ b/oox/source/export/vmlexport.cxx @@ -586,7 +586,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect { SvMemoryStream aStream; int nHeaderSize = 25; // The first bytes are WW8-specific, we're only interested in the PNG - aStream.Write(aStruct.pBuf + nHeaderSize, aStruct.nPropSize - nHeaderSize); + aStream.WriteBytes(aStruct.pBuf + nHeaderSize, aStruct.nPropSize - nHeaderSize); aStream.Seek(0); Graphic aGraphic; GraphicConverter::Import(aStream, aGraphic); @@ -796,7 +796,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect if (rProps.GetOpt(ESCHER_Prop_gtextUNICODE, aUnicode)) { SvMemoryStream aStream; - aStream.Write(it->pBuf, it->nPropSize); + aStream.WriteBytes(it->pBuf, it->nPropSize); aStream.Seek(0); OUString aTextPathString = SvxMSDffManager::MSDFFReadZString(aStream, it->nPropSize, true); aStream.Seek(0); @@ -813,7 +813,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect OUString aStyle; if (rProps.GetOpt(ESCHER_Prop_gtextFont, aFont)) { - aStream.Write(aFont.pBuf, aFont.nPropSize); + aStream.WriteBytes(aFont.pBuf, aFont.nPropSize); aStream.Seek(0); OUString aTextPathFont = SvxMSDffManager::MSDFFReadZString(aStream, aFont.nPropSize, true); aStyle += "font-family:\"" + aTextPathFont + "\""; @@ -844,7 +844,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect case ESCHER_Prop_wzName: { SvMemoryStream aStream; - aStream.Write(it->pBuf, it->nPropSize); + aStream.WriteBytes(it->pBuf, it->nPropSize); aStream.Seek(0); OUString idStr = SvxMSDffManager::MSDFFReadZString(aStream, it->nPropSize, true); aStream.Seek(0); diff --git a/oox/source/ole/vbaexport.cxx b/oox/source/ole/vbaexport.cxx index 5beddc384061..d4e6a9f5716e 100644 --- a/oox/source/ole/vbaexport.cxx +++ b/oox/source/ole/vbaexport.cxx @@ -177,7 +177,7 @@ void VBACompressionChunk::write() sal_uInt16 nHeader = handleHeader(true); setUInt16(pCompressedChunkStream, 0, nHeader); // copy the compressed stream to our output stream - mrCompressedStream.Write(pCompressedChunkStream, mnCompressedCurrent); + mrCompressedStream.WriteBytes(pCompressedChunkStream, mnCompressedCurrent); } } @@ -356,7 +356,7 @@ void VBACompressionChunk::writeRawChunk() { // we need to use up to 4096 bytes of the original stream // and fill the rest with padding - mrCompressedStream.Write(mpUncompressedData, mnChunkSize); + mrCompressedStream.WriteBytes(mpUncompressedData, mnChunkSize); sal_Size nPadding = 4096 - mnChunkSize; for (size_t i = 0; i < nPadding; ++i) { |