summaryrefslogtreecommitdiff
path: root/starmath
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 /starmath
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 'starmath')
-rw-r--r--starmath/source/mathtype.cxx4
-rw-r--r--starmath/source/smdetect.cxx2
-rw-r--r--starmath/source/unomodel.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index dd61e267fd63..a8add3b97762 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -1904,7 +1904,7 @@ bool MathType::ConvertFromStarMath( SfxMedium& rMedium )
0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
tools::SvRef<SotStorageStream> xStor( pStor->OpenSotStream("\1CompObj"));
- xStor->Write(aCompObj,sizeof(aCompObj));
+ xStor->WriteBytes(aCompObj, sizeof(aCompObj));
static sal_uInt8 const aOle[] = {
0x01, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00,
@@ -1912,7 +1912,7 @@ bool MathType::ConvertFromStarMath( SfxMedium& rMedium )
0x00, 0x00, 0x00, 0x00
};
tools::SvRef<SotStorageStream> xStor2( pStor->OpenSotStream("\1Ole"));
- xStor2->Write(aOle,sizeof(aOle));
+ xStor2->WriteBytes(aOle, sizeof(aOle));
xStor.Clear();
xStor2.Clear();
diff --git a/starmath/source/smdetect.cxx b/starmath/source/smdetect.cxx
index c16e4ded7ea0..058f387124b2 100644
--- a/starmath/source/smdetect.cxx
+++ b/starmath/source/smdetect.cxx
@@ -96,7 +96,7 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
aBuffer[nBufferSize] = 0;
pInStrm->Seek( STREAM_SEEK_TO_BEGIN );
pInStrm->StartReadingUnicodeText( RTL_TEXTENCODING_DONTKNOW ); // avoid BOM marker
- sal_uLong nBytesRead = pInStrm->Read( aBuffer, nBufferSize );
+ sal_uLong nBytesRead = pInStrm->ReadBytes( aBuffer, nBufferSize );
if (nBytesRead >= 6)
{
bool bIsMathType = false;
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx
index 1207228d9bfc..2bd723eb489f 100644
--- a/starmath/source/unomodel.cxx
+++ b/starmath/source/unomodel.cxx
@@ -828,7 +828,7 @@ void SmModel::_getPropertyValues( const PropertyMapEntry **ppEntries, Any *pValu
sal_uInt32 nSize = aStream.Tell();
aStream.Seek ( STREAM_SEEK_TO_BEGIN );
Sequence < sal_Int8 > aSequence ( nSize );
- aStream.Read ( aSequence.getArray(), nSize );
+ aStream.ReadBytes(aSequence.getArray(), nSize);
*pValue <<= aSequence;
}
}