summaryrefslogtreecommitdiff
path: root/basic/source/classes
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-06-03 14:45:59 +0200
committerMichael Stahl <mstahl@redhat.com>2016-06-06 18:09:11 +0000
commit62d270116bf34778bf581f21b27fa9cdbff7de0e (patch)
tree0402df0506ab8f6825ef497f27426f01d2e01850 /basic/source/classes
parentd0bc637426060593046c8d3a4d01d0b05b052cc5 (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 'basic/source/classes')
-rw-r--r--basic/source/classes/image.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/basic/source/classes/image.cxx b/basic/source/classes/image.cxx
index 4100a833ea1d..1e1feccd5b2f 100644
--- a/basic/source/classes/image.cxx
+++ b/basic/source/classes/image.cxx
@@ -178,7 +178,7 @@ bool SbiImage::Load( SvStream& r, sal_uInt32& nVersion )
if( bBadVer ) break;
pCode = new char[ nLen ];
nCodeSize = nLen;
- r.Read( pCode, nCodeSize );
+ r.ReadBytes(pCode, nCodeSize);
if ( bLegacy )
{
ReleaseLegacyBuffer(); // release any previously held buffer
@@ -231,7 +231,7 @@ bool SbiImage::Load( SvStream& r, sal_uInt32& nVersion )
nStringSize = (sal_uInt16) nLen;
std::unique_ptr<char[]> pByteStrings(new char[ nLen ]);
- r.Read( pByteStrings.get(), nStringSize );
+ r.ReadBytes(pByteStrings.get(), nStringSize);
for( short j = 0; j < nStrings; j++ )
{
sal_uInt16 nOff2 = (sal_uInt16) pStringOff[ j ];
@@ -427,11 +427,11 @@ bool SbiImage::Save( SvStream& r, sal_uInt32 nVer )
aNewToLegacy.convert();
pLegacyPCode = reinterpret_cast<char*>(aNewToLegacy.GetBuffer());
nLegacyCodeSize = aNewToLegacy.GetSize();
- r.Write( pLegacyPCode, nLegacyCodeSize );
+ r.WriteBytes(pLegacyPCode, nLegacyCodeSize);
}
else
{
- r.Write( pCode, nCodeSize );
+ r.WriteBytes(pCode, nCodeSize);
}
SbiCloseRecord( r, nPos );
}
@@ -456,7 +456,7 @@ bool SbiImage::Save( SvStream& r, sal_uInt32 nVer )
memcpy( pByteStrings.get() + nOff, aStr.getStr(), (aStr.getLength() + 1) * sizeof( char ) );
}
r.WriteUInt32( nStringSize );
- r.Write( pByteStrings.get(), nStringSize );
+ r.WriteBytes(pByteStrings.get(), nStringSize);
pByteStrings.reset();
SbiCloseRecord( r, nPos );